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 01-06-2005, 07:25 AM
Sildae Sildae is offline
Elven sorceress!
Sildae's Avatar
Join Date: Dec 2001
Location: Lothlòrien
Posts: 159
Sildae is on a distinguished road
Quote:
Originally Posted by Zickle
NPC Code:

//#CLIENTSIDE
if (strequals(#s(client.statsgender),boy)) {}
if (strequals(#s(client.statsgender),girl)) {}


only works on update level
I believe the KSI-GS covers that.
__________________
"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man."
-- George Bernard Shaw
Reply With Quote
  #17  
Old 01-06-2005, 10:52 AM
Velox Cruentus Velox Cruentus is offline
Registered User
Velox Cruentus's Avatar
Join Date: Dec 2004
Location: Quebec, Canada
Posts: 465
Velox Cruentus is on a distinguished road
Send a message via ICQ to Velox Cruentus Send a message via AIM to Velox Cruentus
First off, make it easy for people to read.
Second off... Do not put statements without commands.
Third... If you have a string that contains differant possibility, use "else if"
Fourth... Be lazy, It helps.
Fifth... Why the sleep?

Basically, I would've done it like this:
PHP Code:
// NPC made by ZicklePop
if (createdsetshape 1,2,2;
if (
actionplayerwarp){
  
setlevel2 zercha-start-#p(0).nw,30,32.5;
}
//#CLIENTSIDE
if (playerenters){
  if (
strequals(#s(client.statsgender),girl)
      
|| strequals(#s(client.statsgender),guy))
   
triggeraction x+1,y+1,playerwarp,#s(client.statsgender);

Now you're good to rule the world!

Hrm... Perhaps this violates the Forum Rule "Do not ask full scripts". Ohwell, it was quite short regardless.
Reply With Quote
  #18  
Old 01-06-2005, 02:19 PM
Evil_Trunks Evil_Trunks is offline
Evil
Evil_Trunks's Avatar
Join Date: Dec 2004
Posts: 391
Evil_Trunks is on a distinguished road
no clientside part is needed if it is triggered on playerenters
you realize this would be the same thing? but better

PHP Code:
if (playerenters){
  if (
strequals(#s(client.statsgender),girl) || strequals(#s(client.statsgender),guy)) {
     
setlevel2 zercha-start-#p(0).nw,30,32.5;
  
}

__________________

Reply With Quote
  #19  
Old 01-06-2005, 03:22 PM
Zickle Zickle is offline
Awesome
Zickle's Avatar
Join Date: Dec 2002
Posts: 121
Zickle is on a distinguished road
Send a message via ICQ to Zickle Send a message via AIM to Zickle Send a message via MSN to Zickle Send a message via Yahoo to Zickle
Thanks you too, I think I've a got it!
__________________
Reply With Quote
  #20  
Old 01-06-2005, 07:13 PM
JudgeDurst JudgeDurst is offline
Malorian
JudgeDurst's Avatar
Join Date: Jan 2002
Posts: 145
JudgeDurst is on a distinguished road
If this is just for setting the gender of a player why not use
setgender male/female; and check if(playerismale) or if(playerisfemale)
(with else you'd only need to use one anyways)

I'm not sure if that is stored clientside or serverside but unless gender is important I thought that'd be okay. Unless setgender is a depreciated command now o.o
__________________
MrWorry, Lover of Maloria
Reply With Quote
  #21  
Old 01-07-2005, 12:10 AM
Evil_Trunks Evil_Trunks is offline
Evil
Evil_Trunks's Avatar
Join Date: Dec 2004
Posts: 391
Evil_Trunks is on a distinguished road
I always thought it was deprecated, myself

I'm pretty sure Era uses it, though
__________________

Reply With Quote
  #22  
Old 01-07-2005, 03:07 PM
Zickle Zickle is offline
Awesome
Zickle's Avatar
Join Date: Dec 2002
Posts: 121
Zickle is on a distinguished road
Send a message via ICQ to Zickle Send a message via AIM to Zickle Send a message via MSN to Zickle Send a message via Yahoo to Zickle
Quote:
Originally Posted by JudgeDurst
If this is just for setting the gender of a player why not use
setgender male/female; and check if(playerismale) or if(playerisfemale)
(with else you'd only need to use one anyways)

I'm not sure if that is stored clientside or serverside but unless gender is important I thought that'd be okay. Unless setgender is a depreciated command now o.o
I did think of using that but I can't remember in past experiences if it'd set the profile. Plus this way it allows people to change genders in the game lol.
__________________
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 09:58 AM.


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