Quote:
Originally posted by happyme
lolz
I dont see whats wrong with it? It does the job doesnt it?
so anyone got any ideas why it doesnt work?
and it is for non-p2p
btw, this is my first time using destroy so im not that familiar.
|
its probably better to do this, make it destroy before it leaves the level, if you don't the command is not run because the player executing the command is not on the level anymore.
NPC Code:
if (created||playerenters) {
timereverywhere;
timeout=.05;
}
if (playertouchsme&&strequals(playing,#s(etegg))) {
say2 You found it!;
setstring server.eteggwinner,#a;
destroy;
setlevel2 eteggprize.nw,30,30;
}
if (timeout) {
// you don't need timereverywhere more than once.
timeout=.05;
if (strequals(ended,#s(server.etegg)))
destroy;
}