loreal
Member
- Joined
- Oct 1, 2014
- Messages
- 59
- Reaction score
- 8
would like to know how do i create the doItemSetAttribute (cid, 'speed', VALUE) could someone help?
I thought something ..
item.cpp
item.h
more did not work.. anyone could of any hint or solution?
in the formula I thought something like: player-> setSpeed (player-> getSpeed () - player-> getBaseSpeed () + varSpeed);
i use OTX Server 3 - Based on TFS 1.2 8.60
up
up
I thought something ..
item.cpp
Code:
case ATTR_SPEED:
{
int32_t speed;
if(!propStream.getLong((uint32_t&)speed))
return ATTR_READ_ERROR;
setAttribute("speed", speed);
break;
}
item.h
Code:
int32_t getSpeed() const;
ATTR_SPEED = 43
more did not work.. anyone could of any hint or solution?
in the formula I thought something like: player-> setSpeed (player-> getSpeed () - player-> getBaseSpeed () + varSpeed);
i use OTX Server 3 - Based on TFS 1.2 8.60
up
up
Last edited by a moderator: