Thread: Et idea
View Single Post
  #2  
Old 02-26-2002, 04:17 AM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
that would be really easy

have a db npc with a flag, this.lastused and this.log

NPC Code:

if (playerchats&&startswith(give,#c)&&timevar-strtofloat(#s(this.lastused))>=720) {
tokenize #c;
if (tokenscount==3&&strtofloat(#t(2)) in |1,100|) {
with (getplayer(#t(1))) {
playerrupees+=strtofloat(#t(2));
}
addstring this.log,"#a gave #t(1) #t(2)";
}
setplayerprop #c, ;
setstring this.lastused,#v(timevar);
}




im going to test it now
i'll let you know how it works
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote