sep->arg
Posted: Tue Sep 12, 2017 6:48 am
so i am working with mounts to allow moving mounts to the mounts tab on the character sheet
btw the bag id of the mounts page is -8
so a regular inventory move cammand comes through as move 12 15 135604 1 for example which is
inventoy index# 12 to slot 15 of of bag id 135604 with a count of 1
when moving a mount from inventory to the mounts in chararacter sheet the command is move 21 -1 -8
which is move inventory index# 21 to slot -1(auto slot on character since there are no specific slots) to bag id -8 (mounts)
so i need to add to the code to actually do the work and was looking at this to get the idea of how to code it.
the part i dont understand is what sep->arg[4][0]
btw the bag id of the mounts page is -8
so a regular inventory move cammand comes through as move 12 15 135604 1 for example which is
inventoy index# 12 to slot 15 of of bag id 135604 with a count of 1
when moving a mount from inventory to the mounts in chararacter sheet the command is move 21 -1 -8
which is move inventory index# 21 to slot -1(auto slot on character since there are no specific slots) to bag id -8 (mounts)
so i need to add to the code to actually do the work and was looking at this to get the idea of how to code it.
Code: Select all
else if(sep->arg[4][0] && strncasecmp("move", sep->arg[0], 4) == 0 && sep->IsNumber(1) && sep->IsNumber(2) && sep->IsNumber(3) && sep->IsNumber(4))