Hello im trying to get this script to work but i am having a bit of problems
what i want it to do is once a player dies and does not have a certin item they will be placed in jail and will not be allowed to leave
here is my script
- script death -1,{
OnPCDieEvent:
if (countitem(512) == 0){
charcommand "@jail "+strcharinfo(0)+"";
end;
}
else if (countitem(512) < 10) { // 512 is the item ID for Apple, found in item_db
dispbottom "You are runing low on Life Crystals";
end;
}
}
the script will actually say it player has ben jailed but when i click revive im out of the prison
just tried adding a warp before the jail but now i get sent to jail and it says im in jail but i can still just logout and it will respawn me back to normal maps
- script death -1,{
OnPCDieEvent:
if (countitem(512) == 0){
warp "sec_pri",49,75;
charcommand "@jail "+strcharinfo(0)+"";
end;
}
else if (countitem(512) < 10) { // 512 is the item ID for Apple, found in item_db
dispbottom "You are runing low on Life Crystals";
end;
}
}
Question
Mystogan
Hello im trying to get this script to work but i am having a bit of problems
what i want it to do is once a player dies and does not have a certin item they will be placed in jail and will not be allowed to leave
here is my script
the script will actually say it player has ben jailed but when i click revive im out of the prison
just tried adding a warp before the jail but now i get sent to jail and it says im in jail but i can still just logout and it will respawn me back to normal maps
*edit got it to work ^-^*
Edited by MystoganLink to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.