Quote:
Originally posted by Vinvect
what i eman is it lays one rupee then it slppp,1 02 sleep.2 then it lays another one then again it sleeps then lays another one. thanks anyway!
|
[ Delph Inc. ]
NPC Code:
if (created) {
i = 0;
timeout=0.2;
}
if (playerchats) tokenize #c;
if (strequals(#t(0),setrupee)) setstring rupeedrop,#t(1);
if (timeout) {
if (i<#s(rupeedrop)/100) {
lay goldrupee;
i++;
}
timeout=0.2;
}
You could also make it lay green, blue or red rupees as well as gold for more efficiency, if a player such as says something like 'setrupee 136'