Thread: probs with #t
View Single Post
  #17  
Old 09-25-2001, 09:37 AM
Brady2 Brady2 is offline
Registered User
Brady2's Avatar
Join Date: Mar 2001
Location: Phoenix, AZ and Wichita Falls, TX
Posts: 924
Brady2 is on a distinguished road
Jadis:

if (startswith(partstr,str)) ;

NPC Code:

if (playerchats&&startswith(changegani ,#c)) {
tokenize #c;
if (tokenscount==3) {
replaceani #t(1),#t(2);
setplayerprop #c,Gani #t(1) changed to #t(2);
}
}



That should work if I am not mistaken. Maybe the replaceani command doesn't support strings? I am not sure.
Reply With Quote