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

Lua creaturescripts interference

rudger

Active Member
Joined
Oct 1, 2010
Messages
253
Solutions
1
Reaction score
32
Location
The Netherlands
Maybe a stupid question but I see some servers have multiple 'same' creaturescripts in their datapack.

Like:

onPrepareDeath for pvp zone
onPrepareDeath for event1
onPrepareDeath for event2
onPrepareDeath for event3

How come they don't interfere with each other? Why can you use "onPrepareDeath" many times without trouble?
 
Well, if you mean why in "event1" they get healed back up and on "event2" they get tp'd back to temple is because there's most likely a storage check (or a position check), which means that if player with storage 3333 dies, onPrepareDeath for "event1" will be executed.
 
Back
Top