• 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!

protection zone

Dominik ms

Member
Joined
Jan 20, 2010
Messages
424
Reaction score
6
how to make, all items with id (4848, 4849...) is protection zone??
So if palyer step in then monster can't cant attack players
 
It would be very easier if you just searched the item ids in RME (ctrl+f) and just add the protection zone tiles yourself.
 
Try editing iomap.cpp, ?
Code:
	[B][COLOR="red"]uint16_t id = map->getTile(Position(px, py, pz))->ground->getID();[/COLOR][/B]
	if([B][COLOR="red"](id >= XXXX && XXXX <= id) || [/COLOR][/B](flags & TILESTATE_PROTECTIONZONE) == TILESTATE_PROTECTIONZONE)
		tileflags |= TILESTATE_PROTECTIONZONE;
 
Like this??
Crushing server when loading map ;/

PHP:
                  uint16_t id = map->getTile(Position(px, py, pz))->ground->getID();
                          if((id >= XXXX && XXXX <= id) || (flags & TILESTATE_PROTECTIONZONE) == TILESTATE_PROTECTIONZONE)
                               tileflags |= TILESTATE_PROTECTIONZONE;
                          else if((flags & TILESTATE_NOPVPZONE) == TILESTATE_NOPVPZONE)
                               tileflags |= TILESTATE_NOPVPZONE;
                          else if((flags & TILESTATE_PVPZONE) == TILESTATE_PVPZONE)
                               tileflags |= TILESTATE_PVPZONE;

                           if((flags & TILESTATE_NOLOGOUT) == TILESTATE_NOLOGOUT)
                                tileflags |= TILESTATE_NOLOGOUT;

                           if((flags & TILESTATE_REFRESH) == TILESTATE_REFRESH)
                                {
                         if(house)
                         std::cout << "[x:" << px << ", y:" << py << ", z:" << pz << "] House tile flagged as refreshing!";

                                    tileflags |= TILESTATE_REFRESH;
                                }
 
Have any suggestion??

I want To make
if tile itemid = xxxx then monster cant step in (but Player can)
If between monster and Player is this item then monster must go To arount.
 
Back
Top