View Single Post
  #5  
Old 10-08-2001, 02:27 PM
Knightoffrost Knightoffrost is offline
and Delph Inc.
Knightoffrost's Avatar
Join Date: Jul 2001
Location: Canada
Posts: 1,162
Knightoffrost is on a distinguished road
Send a message via ICQ to Knightoffrost Send a message via AIM to Knightoffrost Send a message via Yahoo to Knightoffrost
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'
__________________
Xerphier Dintch
Featuring
Reply With Quote