Graal Forums  

Go Back   Graal Forums > PlayerWorlds > Bomy Island Main Forum
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-23-2001, 12:38 AM
FxChiP FxChiP is offline
Registered User
Join Date: Mar 2001
Location: Pittsburgh, PA
Posts: 451
FxChiP is on a distinguished road
Send a message via ICQ to FxChiP Send a message via AIM to FxChiP
Is the script parsing feature allowed on non-P2P servers?
__________________


"The administrators of Graal Online will not be responsible for corrupting of young minds. " -User Agreement.. heh-heh-heh

"4. Racial intolerance is not allowed. [NEW!]" -User License Agreement (I love the "[NEW!]" part)

"No more drugs for THAT man!" -TrueHeaT

"... or does
it stand for something like
'[B]hala is the [M]an who decides so lets [X]ross the fingers'?)" -Stefan, in response to a guild dispute over the guild name "BMX"

[img src=http://www.lucitanica.f2s.com/shaun-revolutionsig.gif]
Time to piss Lycia off!
Reply With Quote
  #2  
Old 04-23-2001, 12:44 AM
waar waar is offline
Banned
Join Date: Mar 2001
Location: usa
Posts: 1,971
waar is on a distinguished road
Send a message via ICQ to waar Send a message via AIM to waar
par.....se...eeengg??
Reply With Quote
  #3  
Old 04-23-2001, 12:56 AM
FxChiP FxChiP is offline
Registered User
Join Date: Mar 2001
Location: Pittsburgh, PA
Posts: 451
FxChiP is on a distinguished road
Send a message via ICQ to FxChiP Send a message via AIM to FxChiP
Should be where you can pick out a string from a line and use it for whatever reason. You could make new "server commands" with it.
__________________


"The administrators of Graal Online will not be responsible for corrupting of young minds. " -User Agreement.. heh-heh-heh

"4. Racial intolerance is not allowed. [NEW!]" -User License Agreement (I love the "[NEW!]" part)

"No more drugs for THAT man!" -TrueHeaT

"... or does
it stand for something like
'[B]hala is the [M]an who decides so lets [X]ross the fingers'?)" -Stefan, in response to a guild dispute over the guild name "BMX"

[img src=http://www.lucitanica.f2s.com/shaun-revolutionsig.gif]
Time to piss Lycia off!
Reply With Quote
  #4  
Old 04-23-2001, 01:19 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
Actually...

You can do that with it
Let's see now this would be a script which should work for warpto simulation:
NPC Code:

if (playerchats&&startswith(warpto,#c)) {
tokenize2 ,,#c;
if (tokenscount==2) setlevel #t(1);
else if (tokenscount==3) {
playerx=#t(1);
playery=#t(2);
}
else if (tokenscount==4) setlevel2 #t(1),strtofloat(#t(2)),strtofloat(#t(3));
}


Just try it, you can then use warpto offline
__________________

Reply With Quote
  #5  
Old 04-23-2001, 01:26 AM
Nai Nai is offline
Back!
Join Date: Mar 2001
Location: USA
Posts: 1,489
Nai is on a distinguished road
Send a message via AIM to Nai
heh, that is cool. I could use that for my personel world I am making. Very good and cool.
__________________
Reply With Quote
  #6  
Old 04-23-2001, 01:36 AM
FxChiP FxChiP is offline
Registered User
Join Date: Mar 2001
Location: Pittsburgh, PA
Posts: 451
FxChiP is on a distinguished road
Send a message via ICQ to FxChiP Send a message via AIM to FxChiP
Grr

Damn it, I already know how to parse strings, I'm just asking if it's alright to use in a non-p2p server.

Besides, if you're gonna warp x/y, you don't have to use tokenize2... watch:

NPC Code:

if (playerchats) {
tokenize #c;
}

if (strequals(#t(0),warptopoint)) {
playerx = strtofloat(#t(1));
playery = strtofloat(#t(2));
}



Anyway, all I want to know is if it's alright with Stefan to use it on a non-P2P world.
__________________


"The administrators of Graal Online will not be responsible for corrupting of young minds. " -User Agreement.. heh-heh-heh

"4. Racial intolerance is not allowed. [NEW!]" -User License Agreement (I love the "[NEW!]" part)

"No more drugs for THAT man!" -TrueHeaT

"... or does
it stand for something like
'[B]hala is the [M]an who decides so lets [X]ross the fingers'?)" -Stefan, in response to a guild dispute over the guild name "BMX"

[img src=http://www.lucitanica.f2s.com/shaun-revolutionsig.gif]
Time to piss Lycia off!
Reply With Quote
  #7  
Old 04-23-2001, 01:38 AM
FxChiP FxChiP is offline
Registered User
Join Date: Mar 2001
Location: Pittsburgh, PA
Posts: 451
FxChiP is on a distinguished road
Send a message via ICQ to FxChiP Send a message via AIM to FxChiP
Oh yeah, I don't think strings can serve as real variables, but if they can, here's shorter warpto code:

NPC Code:

if (playerchats) {
tokenize #c;
}

if (strequals(#t(0),warpto)) {
setlevel2 #t(1),#t(2),#t(3);
}


__________________


"The administrators of Graal Online will not be responsible for corrupting of young minds. " -User Agreement.. heh-heh-heh

"4. Racial intolerance is not allowed. [NEW!]" -User License Agreement (I love the "[NEW!]" part)

"No more drugs for THAT man!" -TrueHeaT

"... or does
it stand for something like
'[B]hala is the [M]an who decides so lets [X]ross the fingers'?)" -Stefan, in response to a guild dispute over the guild name "BMX"

[img src=http://www.lucitanica.f2s.com/shaun-revolutionsig.gif]
Time to piss Lycia off!
Reply With Quote
  #8  
Old 04-23-2001, 01:50 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
Blah.

I used the tokenize2 to allow true warpto stuff, because if you have that power you say:
Quote:
warpto levelname,x,y
And I used the strtofloat in it because Graal gives an error when you don't use strtofloat while using Strings in the setlevel2 command
And as for the other thing we'll just have to wait till Stefan replies
__________________

Reply With Quote
  #9  
Old 04-23-2001, 01:53 AM
FxChiP FxChiP is offline
Registered User
Join Date: Mar 2001
Location: Pittsburgh, PA
Posts: 451
FxChiP is on a distinguished road
Send a message via ICQ to FxChiP Send a message via AIM to FxChiP
Yeah, I had just caught that you used strtofloat after I posted it, and decided not to edit my post. I don't know why.
__________________


"The administrators of Graal Online will not be responsible for corrupting of young minds. " -User Agreement.. heh-heh-heh

"4. Racial intolerance is not allowed. [NEW!]" -User License Agreement (I love the "[NEW!]" part)

"No more drugs for THAT man!" -TrueHeaT

"... or does
it stand for something like
'[B]hala is the [M]an who decides so lets [X]ross the fingers'?)" -Stefan, in response to a guild dispute over the guild name "BMX"

[img src=http://www.lucitanica.f2s.com/shaun-revolutionsig.gif]
Time to piss Lycia off!
Reply With Quote
  #10  
Old 04-23-2001, 01:56 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
Heh, I made a mistake myself with the playerx and playery anyway
__________________

Reply With Quote
  #11  
Old 04-23-2001, 01:58 AM
FxChiP FxChiP is offline
Registered User
Join Date: Mar 2001
Location: Pittsburgh, PA
Posts: 451
FxChiP is on a distinguished road
Send a message via ICQ to FxChiP Send a message via AIM to FxChiP
Well

Yeah.

For some reason, I usually experiment with new commands as soon as I know about them :P

Just to figure out how they'd be useful to me.
__________________


"The administrators of Graal Online will not be responsible for corrupting of young minds. " -User Agreement.. heh-heh-heh

"4. Racial intolerance is not allowed. [NEW!]" -User License Agreement (I love the "[NEW!]" part)

"No more drugs for THAT man!" -TrueHeaT

"... or does
it stand for something like
'[B]hala is the [M]an who decides so lets [X]ross the fingers'?)" -Stefan, in response to a guild dispute over the guild name "BMX"

[img src=http://www.lucitanica.f2s.com/shaun-revolutionsig.gif]
Time to piss Lycia off!
Reply With Quote
  #12  
Old 04-23-2001, 03:00 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
Heh...I keep asking him what we're allowed to and not allowed to use on Classic, but he won't tell me...I'm not entirely sure we're included in the PW category, since we're sorta the G2K1 Demo Version...
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #13  
Old 04-23-2001, 03:15 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
Another way

Here is another way you could make a warpto function:

if (playerchats&&startswith(warpto ,#c))
{
players[0].x=strtofloat(#e(7,2,#c));
players[0].y=strtofloat(#e(10,-1,#c))
}

That is a little shorter than using tokenize but not sure if it is the best way to do it.

---------------
bryan986
Navarone PW Owner
Reply With Quote
  #14  
Old 04-23-2001, 03:31 AM
vergil vergil is offline
Registered User
vergil's Avatar
Join Date: Mar 2001
Posts: 1,408
vergil will become famous soon enough
Send a message via ICQ to vergil
shouldn't this go in the Levels and NPC forum?
Reply With Quote
  #15  
Old 04-23-2001, 06:48 AM
FxChiP FxChiP is offline
Registered User
Join Date: Mar 2001
Location: Pittsburgh, PA
Posts: 451
FxChiP is on a distinguished road
Send a message via ICQ to FxChiP Send a message via AIM to FxChiP
Stefan won't notice it there.

Besides, this topic wasn't intended for script discussion for warpto and such, but someone had to bring it up. :P
__________________


"The administrators of Graal Online will not be responsible for corrupting of young minds. " -User Agreement.. heh-heh-heh

"4. Racial intolerance is not allowed. [NEW!]" -User License Agreement (I love the "[NEW!]" part)

"No more drugs for THAT man!" -TrueHeaT

"... or does
it stand for something like
'[B]hala is the [M]an who decides so lets [X]ross the fingers'?)" -Stefan, in response to a guild dispute over the guild name "BMX"

[img src=http://www.lucitanica.f2s.com/shaun-revolutionsig.gif]
Time to piss Lycia off!
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:27 PM.


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