Thread: Et idea
View Single Post
  #9  
Old 02-26-2002, 07:21 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
then here, i'll add some things to it

NPC Code:

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


i'll go test that :P
__________________
Staff on Renegade


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