Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Tokens... (https://forums.graalonline.com/forums/showthread.php?t=48644)

Idrox0 10-18-2003 11:58 PM

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).

Lance 10-19-2003 12:45 AM

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.

Idrox0 10-19-2003 10:34 AM

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?

Riot-Starter 10-19-2003 11:03 AM

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?

DustyPorViva 10-19-2003 11:09 AM

I knew it, just never used it I guess.

osrs 10-19-2003 09:16 PM

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:

DustyPorViva 10-19-2003 09:19 PM

No script posting allowed, sorry, but Kai deleted mines.

osrs 10-19-2003 10:15 PM

Quote:

Originally posted by DustyPorViva
No script posting allowed, sorry, but Kai deleted mines.
I don't think that's a whole code.

DustyPorViva 10-20-2003 12:47 AM

Mines was just as short.

Lance 10-20-2003 01:26 AM

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.

osrs 10-20-2003 02:00 AM

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.

ZeLpH_MyStiK 10-23-2003 06:01 AM

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

ZeLpH_MyStiK 10-23-2003 06:08 AM

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 ;)

Python523 10-23-2003 07:59 AM

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

Lance 10-23-2003 09:29 AM

Zelph: Stop posting full scripts to solve people's problems. -_-


All times are GMT +2. The time now is 06:25 AM.

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