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
  #1  
Old 12-22-2001, 01:02 PM
Kumada Kumada is offline
Ded
Kumada's Avatar
Join Date: Nov 2001
Location: Usa
Posts: 1,088
Kumada is on a distinguished road
Unhappy With getplayer ...

Would this work?? i want it so it would send the player to x=30 y=30 to the level. But it only works if the player is in that level
so if i said "unjail kumada" it would only unjail me if i was in jail.nw not anywhere else.
Heres what i have..
if (playerchats&&strequals(#g,Guild)){
tokenize #c;
if (strequals(unjail,#c)){
with (getplayer(#t(1))&&strequals(#l,Jail.nw)){
playerx=30;
playery=30;
}}}
__________________
Aim: Mmm Kumada

Reply With Quote
  #2  
Old 12-22-2001, 01:07 PM
aesquivel aesquivel is offline
Registered User
Join Date: Sep 2001
Location: Whitewright
Posts: 346
aesquivel is on a distinguished road
Send a message via AIM to aesquivel
Re: With getplayer ...

Quote:
Originally posted by Kumada
Would this work?? i want it so it would send the player to x=30 y=30 to the level. But it only works if the player is in that level
so if i said "unjail kumada" it would only unjail me if i was in jail.nw not anywhere else.
Heres what i have..
if (playerchats&&strequals(#g,Guild)){
tokenize #c;
if (strequals(unjail,#c)){
with (getplayer(#t(1))&&strequals(#l,Jail.nw)){
playerx=30;
playery=30;
}}}
tht looks about right except i think the letter l is supposed to be a capital L but im not quite sure but other than that i dont see any thing wrong with it
__________________
Reply With Quote
  #3  
Old 12-22-2001, 02:00 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
with(getplayer) is NPC Server I believe, wont work offline
Reply With Quote
  #4  
Old 12-22-2001, 02:02 PM
aesquivel aesquivel is offline
Registered User
Join Date: Sep 2001
Location: Whitewright
Posts: 346
aesquivel is on a distinguished road
Send a message via AIM to aesquivel
i think he already knows that .........
__________________
Reply With Quote
  #5  
Old 12-22-2001, 02:03 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by aesquivel
i think he already knows that .........
I thought if he did, it would be in the NPC Server section, not here
Reply With Quote
  #6  
Old 12-22-2001, 02:10 PM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
Re: With getplayer ...

Quote:
Originally posted by Kumada
Would this work?? i want it so it would send the player to x=30 y=30 to the level. But it only works if the player is in that level
so if i said "unjail kumada" it would only unjail me if i was in jail.nw not anywhere else.
Heres what i have..
if (playerchats&&strequals(#g,Guild)){
tokenize #c;
if (strequals(unjail,#c)){
with (getplayer(#t(1))&&strequals(#l,Jail.nw)){
playerx=30;
playery=30;
}}}
Try this. I think I got the setlevel2 command right... Remember, this is a p2p only serverside npc.
NPC Code:

if (playerchats && strequals(#g,Guild)) {
tokenize #c;
if (strequals(unjail,#t(0))) {
with (getplayer(#t(1))) {
setlevel2 Jail.nw,30,30;
}
}
}

__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
Reply With Quote
  #7  
Old 12-22-2001, 02:12 PM
aesquivel aesquivel is offline
Registered User
Join Date: Sep 2001
Location: Whitewright
Posts: 346
aesquivel is on a distinguished road
Send a message via AIM to aesquivel
well it really dont matter because either way u look at it its still scripting also more ppl read this section than the other one if u hadent noticed
__________________
Reply With Quote
  #8  
Old 12-22-2001, 02:15 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by aesquivel
well it really dont matter because either way u look at it its still scripting also more ppl read this section than the other one if u hadent noticed
True, I would think the better scripters would hang out at the NPC Server area, I need to learn some NPC Server myself, I've read the document but its kind of hard to learn it because none of the commands work offline, they should make some kind of offline NPC Server if possible to test out commands
Reply With Quote
  #9  
Old 12-22-2001, 02:22 PM
aesquivel aesquivel is offline
Registered User
Join Date: Sep 2001
Location: Whitewright
Posts: 346
aesquivel is on a distinguished road
Send a message via AIM to aesquivel
ya that sure would help wouldnt it posting it in the future improvements
__________________
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 04:13 PM.


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