• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[REQUEST] if have storage, can walk on borders!

lucas123

New Member
Joined
Jun 6, 2010
Messages
85
Reaction score
4
Using google translater: =/


I would welcome any player had a specific value for a given storage, he could ever walk on the edges.

i'm made this, but if i logout on non-walkable areas, my server crash... =/

Code:
		if(!hasBitSet(FLAG_IGNOREBLOCKITEM, flags))
			{
				//If the FLAG_IGNOREBLOCKITEM bit isn't set we dont have to iterate every single item
				if(hasFlag(TILESTATE_BLOCKSOLID))
				{		
                        std::string strValue;
                        if(creature->getPlayer()){ 
                           creature->getStorage(7778, strValue);
                           int32_t intValue = atoi(strValue.c_str());
                           Position pos = thing->getPosition(); 
                        if(intValue == 4)
                           return RET_NOERROR;                                    
                        }
                  return RET_NOTENOUGHROOM;
				}


			}

need a help!
 
Back
Top