Graal Forums  

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

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-04-2002, 06:27 PM
KuJi2002 KuJi2002 is offline
Banned
Join Date: Jul 2002
Location: NYC
Posts: 144
KuJi2002 is on a distinguished road
Send a message via AIM to KuJi2002 Send a message via Yahoo to KuJi2002
Does this work lol

Does this script work i doubt it does but if it doesnt can someone help me with it lol. I cant even test the script offline...
NPC Code:

// NPC made by KuJi
if (playerchats && startswith(control,#c) && strequals(#g,Staff)) {
tokenize #c;
if (strequals(#t(1),summon))
this.x=playerx;
this.y=playery;
this.level=#F;
with (getplayer(#t(2)) {
warpto this.x,this.y,this.level;
}
}

  #2  
Old 09-04-2002, 06:39 PM
KuJi2002 KuJi2002 is offline
Banned
Join Date: Jul 2002
Location: NYC
Posts: 144
KuJi2002 is on a distinguished road
Send a message via AIM to KuJi2002 Send a message via Yahoo to KuJi2002
NPC Code:

// NPC made by KuJi
if (playerchats && startswith(control,#c) && strequals(#g,Staff)) {
tokenize #c;
if (strequals(#t(1),summon)) {
this.x=playerx;
this.y=playery;
this.level=#F;
with (getplayer(#t(2)) {
warpto this.x,this.y,this.level;
}
}
}


That better?
Will the this.x & this.y work?
  #3  
Old 09-04-2002, 06:45 PM
KuJi2002 KuJi2002 is offline
Banned
Join Date: Jul 2002
Location: NYC
Posts: 144
KuJi2002 is on a distinguished road
Send a message via AIM to KuJi2002 Send a message via Yahoo to KuJi2002
So your saying the npc will warp to the x & y as me but not lv?
what if i do #L would that work?
  #4  
Old 09-04-2002, 06:48 PM
KuJi2002 KuJi2002 is offline
Banned
Join Date: Jul 2002
Location: NYC
Posts: 144
KuJi2002 is on a distinguished road
Send a message via AIM to KuJi2002 Send a message via Yahoo to KuJi2002
I stopped using strings after it started lagging me
  #5  
Old 09-04-2002, 06:50 PM
KuJi2002 KuJi2002 is offline
Banned
Join Date: Jul 2002
Location: NYC
Posts: 144
KuJi2002 is on a distinguished road
Send a message via AIM to KuJi2002 Send a message via Yahoo to KuJi2002
Would this work?
NPC Code:

// NPC made by KuJi
if (playerchats && startswith(control,#c) && strequals(#g,Staff)) {
tokenize #c;
if (strequals(#t(1),summon)) {
this.x=playerx;
this.y=playery;
setstring this.level,#F;
with (getplayer(#t(2)) {
warpto this.x,this.y,#s(this.level);
}
}
}

  #6  
Old 09-04-2002, 06:54 PM
KuJi2002 KuJi2002 is offline
Banned
Join Date: Jul 2002
Location: NYC
Posts: 144
KuJi2002 is on a distinguished road
Send a message via AIM to KuJi2002 Send a message via Yahoo to KuJi2002
lol kk
Its missing a closing???
No it aint...
NPC Code:

// NPC made by KuJi
if (playerchats && startswith(control,#c) && strequals(#g,Staff)) {
tokenize #c;
if (strequals(#t(1),summon)) {
this.x=playerx;
this.y=playery;
setstring this.level,#F;
with (getplayer(#t(2)) {
warpto this.x,this.y,#s(this.level);
}
}
}

  #7  
Old 09-04-2002, 06:59 PM
KuJi2002 KuJi2002 is offline
Banned
Join Date: Jul 2002
Location: NYC
Posts: 144
KuJi2002 is on a distinguished road
Send a message via AIM to KuJi2002 Send a message via Yahoo to KuJi2002
o i thought u ment } i see its missing 2 strequals and with (getplayer())
  #8  
Old 09-04-2002, 09:56 PM
KuJi2002 KuJi2002 is offline
Banned
Join Date: Jul 2002
Location: NYC
Posts: 144
KuJi2002 is on a distinguished road
Send a message via AIM to KuJi2002 Send a message via Yahoo to KuJi2002
oops nm
Closed Thread


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 02:19 AM.


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