Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #16  
Old 10-18-2003, 11:58 PM
Idrox0 Idrox0 is offline
Registered User
Join Date: Oct 2003
Posts: 66
Idrox0 is on a distinguished road
Quote:
Origianally posted by: Lance
Um, no I'm not. You can say more words than you call the tokens of -
I know you can say more words than tokens, but i don't think the NPC would show all of them(which is what I want).
__________________
Reply With Quote
  #17  
Old 10-19-2003, 12:45 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally posted by Idrox0

I know you can say more words than tokens, but i don't think the NPC would show all of them(which is what I want).
Well, I was still talking about your original code, not about the fiting code.

Out of curiosity, what do you need to use all of the tokens for? There are a variety of ways to get what you want, but they really depend on your application.
Reply With Quote
  #18  
Old 10-19-2003, 10:34 AM
Idrox0 Idrox0 is offline
Registered User
Join Date: Oct 2003
Posts: 66
Idrox0 is on a distinguished road
Alright... what I'm trying to get is an npc that when you put a certain prefix such as "/moo" that it would show all the words after it on all the players' screens. Something like the Events Team thing on Babylon where when they they say "setevent2" that everything else appears on the top-left of the players' screens. Capiche? Again, does DoomsDay have a website?
__________________
Reply With Quote
  #19  
Old 10-19-2003, 11:03 AM
Riot-Starter Riot-Starter is offline
Registered User
Join Date: Aug 2001
Location: Central Florida, USA
Posts: 79
Riot-Starter is on a distinguished road
Send a message via AIM to Riot-Starter
Quote:
Originally posted by DustyPorViva
Well try this I guess, again I haven't tested:
You know if you put -1 for the length it will go to the end?
Reply With Quote
  #20  
Old 10-19-2003, 11:09 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
I knew it, just never used it I guess.
Reply With Quote
  #21  
Old 10-19-2003, 09:16 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Quote:
Originally posted by Idrox0
Alright... what I'm trying to get is an npc that when you put a certain prefix such as "/moo" that it would show all the words after it on all the players' screens. Something like the Events Team thing on Babylon where when they they say "setevent2" that everything else appears on the top-left of the players' screens. Capiche? Again, does DoomsDay have a website?
<code removed>

Capiche? :grin:
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #22  
Old 10-19-2003, 09:19 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
No script posting allowed, sorry, but Kai deleted mines.
Reply With Quote
  #23  
Old 10-19-2003, 10:15 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Quote:
Originally posted by DustyPorViva
No script posting allowed, sorry, but Kai deleted mines.
I don't think that's a whole code.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #24  
Old 10-20-2003, 12:47 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Mines was just as short.
Reply With Quote
  #25  
Old 10-20-2003, 01:26 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
osrs: pointless to use #T if you are using 5 as the startindex, as that forces you to have a space in front of it for the #e to cut it off, and then there's nothing left for the #T to trim.
Reply With Quote
  #26  
Old 10-20-2003, 02:00 AM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Quote:
Originally posted by Lance
osrs: pointless to use #T if you are using 5 as the startindex, as that forces you to have a space in front of it for the #e to cut it off, and then there's nothing left for the #T to trim.
Hm, really. >.>
I don't know why i used #T since i put -1 as length too.
My bad.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #27  
Old 10-23-2003, 06:01 AM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
ok here's an pre-alpha version lol might not work probably will tho

<removed>


as i said i think this should work so copy it and try it...if not ur welcome to contact me and i'll fix it for you
__________________
Reply With Quote
  #28  
Old 10-23-2003, 06:08 AM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
o.O im sorry cant read lol you want it to display everything except the first word well here:

<removed>

this is better than using tokens because it'll let you use commas where as if u use tokenize and u say something like "hello, to myself" it'll only display "hello"
hope this helps
__________________
Reply With Quote
  #29  
Old 10-23-2003, 07:59 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by osrs


Hm, really. >.>
I don't know why i used #T since i put -1 as length too.
My bad.
#T has no relationship between the -1 at all

it's used so, say I say:
/testTEST
/test TEST
strequals(#T(#e(5,-1,#c)),TEST)
both instances would return true

but well... I guess it does have some sort of relation with the 01, #T is trimming all spaces at the from and end of a string
so #T( test ) = test #T ( 123) = 123, etc, most people just don't need to use it for the end part because they know to use -1, instead of say just guessing the length is going to be 100 then trimming it
Reply With Quote
  #30  
Old 10-23-2003, 09:29 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Zelph: Stop posting full scripts to solve people's problems. -_-
Reply With Quote
Reply


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 10:12 PM.


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