![]() |
How would I make sethead,setshield,setsword and that is all since you can't do setnick...how would I make em without typing in EVERY shield,sword and head name
|
uh, you can't do it in an NPC because Graalscript doesnt have string parsing.
|
Aye.
The closest you can get is by firstly making the player say "setshield" or whatever, and then the image name ;)
|
actually....string parsing exists, though it's quite new, and only supported by the npc server. If you could get Stefan to put it into offline mode then it'd be quite easy...
|
Quote:
|
actually, setbomy is built in....like sethead....String parsing is too new. Actually, setbomy is just a version of sethead that will only set bomy images (since the bomy image is in fact set to the head of ganis)
|
Quote:
|
Yes, string parsing was used for the give bomy <acountname> thing, I think.
|
Quote:
Its used very intensely in the bomy pets. |
accually
accually you can now do it if you have v2.0.2 +
you would have to use the functions strlen(str) startswith(part,str) #e(startindex,length,str) you would do something like if(startswith(setsword,#c){ this.how.long = strlen(#c); this.gif = #e(9,this.how.long-9,#c); } this code was just off the top of my head.. I haven't tested it but it would be something like that I beleve. |
wow man thanx, for the parsing thing, i really needed that =D
|
i guess i should move the setbomy thing
to the bomy script now, since string parsing is now possible and other server makers might not want to have that thing built-in |
Um, why would you need sethead,setshield and setsword offline?
|
| All times are GMT +2. The time now is 02:34 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.