Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-15-2001, 01:18 AM
Komieko Komieko is offline
Registered User
Join Date: Mar 2001
Posts: 494
Komieko is on a distinguished road
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
Reply With Quote
  #2  
Old 04-15-2001, 01:55 AM
zerohero zerohero is offline
Registered User
Join Date: Mar 2001
Posts: 43
zerohero is on a distinguished road
uh, you can't do it in an NPC because Graalscript doesnt have string parsing.
__________________
Pie am yum!
Reply With Quote
  #3  
Old 04-15-2001, 03:23 AM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
Aye.

The closest you can get is by firstly making the player say "setshield" or whatever, and then the image name
__________________

Reply With Quote
  #4  
Old 04-15-2001, 04:17 AM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
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...
Reply With Quote
  #5  
Old 04-15-2001, 04:25 AM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
Quote:
Originally posted by kyle0654
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...
Aha, that explains how the setbomy commands etc. work.
__________________

Reply With Quote
  #6  
Old 04-15-2001, 11:20 AM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
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)
Reply With Quote
  #7  
Old 04-15-2001, 05:41 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
Quote:
Originally posted by kyle0654
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)
Erm okay... Then it's how they made that new bomy version. I guess.
__________________

Reply With Quote
  #8  
Old 04-15-2001, 10:53 PM
Thak2 Thak2 is offline
:]
Join Date: Mar 2001
Location: BC
Posts: 1,344
Thak2 is on a distinguished road
Send a message via AIM to Thak2
Yes, string parsing was used for the give bomy <acountname> thing, I think.
Reply With Quote
  #9  
Old 04-17-2001, 04:01 PM
Lycia Lycia is offline
Banned
Lycia's Avatar
Join Date: Mar 2001
Location: Over there. --->
Posts: 3,240
Lycia is on a distinguished road
Send a message via ICQ to Lycia Send a message via AIM to Lycia
Quote:
Originally posted by Thak2
Yes, string parsing was used for the give bomy <acountname> thing, I think.
Yep.

Its used very intensely in the bomy pets.
Reply With Quote
  #10  
Old 04-23-2001, 06:27 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
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.
__________________
Thanks,
-KJL
Reply With Quote
  #11  
Old 04-24-2001, 05:54 AM
GraalWarrior2k1 GraalWarrior2k1 is offline
Registered User
GraalWarrior2k1's Avatar
Join Date: Mar 2001
Location: New York
Posts: 506
GraalWarrior2k1 is on a distinguished road
Send a message via AIM to GraalWarrior2k1
wow man thanx, for the parsing thing, i really needed that =D
Reply With Quote
  #12  
Old 04-26-2001, 10:29 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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
Reply With Quote
  #13  
Old 04-26-2001, 12:05 PM
Lion'el-Jonson Lion'el-Jonson is offline
Please Wait....
Lion'el-Jonson's Avatar
Join Date: Mar 2001
Location: I like to eat food samples at price club.
Posts: 1,663
Lion'el-Jonson will become famous soon enough
Send a message via AIM to Lion'el-Jonson Send a message via Yahoo to Lion'el-Jonson
Um, why would you need sethead,setshield and setsword offline?
__________________


"My words are like weaponry on a record"
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:38 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.