PDA

View Full Version : How would I?


Spearman
04-12-2001, 07:54 AM
Script something like the donation graal where someone has to type donate <money amount>?

grim_squeaker_x
04-12-2001, 08:46 PM
This should work:
if (playerchats) {
if (strcontains(#c,donate)) {
if (playerrupees>=playersaysnumber) {
playerrupees-=playersaysnumber;
rupees+=playersaysnumber;
}
}
if (strequals(#a,Spearman)&&strequals(#c,Gimmegimmegimme!)) {
playerrupees+=rupees;
rupees=0;
}
}
Although you will always have to say it in the format:
<number> donate

Spearman
04-12-2001, 08:56 PM
Ok, but now how bout if the person said warp: levelname,x,y How would I get that into the
setlevel2 script? And how do I get it to check in a variable (one that conatins text) to see if that certain level is resricted or not