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 03-07-2004, 02:30 AM
Fhqwhgads Fhqwhgads is offline
Registered User
Join Date: Nov 2003
Location: Chicago
Posts: 57
Fhqwhgads is on a distinguished road
Send a message via AIM to Fhqwhgads
question bout setplayerprop

why doesnt this work? I tried clientside and i tried setcharprop too.. so why wont it work? it works with setplayerprop #c
NPC Code:

if (playerchats && strequals(#c,red)){
setplayerprop #g,Red Team;
}

Reply With Quote
  #2  
Old 03-07-2004, 02:50 AM
Kristi Kristi is offline
Bowie's Deciple
Kristi's Avatar
Join Date: Dec 2003
Location: Boston, MA
Posts: 748
Kristi has a spectacular aura aboutKristi has a spectacular aura about
Send a message via AIM to Kristi Send a message via MSN to Kristi
Re: question bout setplayerprop

Quote:
Originally posted by Fhqwhgads
why doesnt this work? I tried clientside and i tried setcharprop too.. so why wont it work? it works with setplayerprop #c
NPC Code:

if (playerchats && strequals(#c,red)){
setplayerprop #g,Red Team;
}

You can't set guild tags clientside.
__________________
Reply With Quote
  #3  
Old 03-07-2004, 02:58 AM
Fhqwhgads Fhqwhgads is offline
Registered User
Join Date: Nov 2003
Location: Chicago
Posts: 57
Fhqwhgads is on a distinguished road
Send a message via AIM to Fhqwhgads
I said I ALSO tried clientside :o
Reply With Quote
  #4  
Old 03-07-2004, 06:31 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by Fhqwhgads
I said I ALSO tried clientside :o
Well the alternative is doing is serverside when you're on a server that's online, you try that?
Reply With Quote
  #5  
Old 03-07-2004, 06:39 PM
Fhqwhgads Fhqwhgads is offline
Registered User
Join Date: Nov 2003
Location: Chicago
Posts: 57
Fhqwhgads is on a distinguished road
Send a message via AIM to Fhqwhgads
thanks python.. i serversided it and made it setCHARprop..
now i jsut gotta figure otu how to summon multiple people
Reply With Quote
  #6  
Old 03-07-2004, 07:46 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Quote:
Originally posted by Fhqwhgads
thanks python.. i serversided it and made it setCHARprop..
now i jsut gotta figure otu how to summon multiple people
setplayerprop #g -> Will change the player guild.
setcharprop #g -> Will change the character guild.

Wich one do you want to change?
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #7  
Old 03-07-2004, 09:37 PM
Fhqwhgads Fhqwhgads is offline
Registered User
Join Date: Nov 2003
Location: Chicago
Posts: 57
Fhqwhgads is on a distinguished road
Send a message via AIM to Fhqwhgads
i got it man.. it works now...
Reply With Quote
  #8  
Old 03-07-2004, 09:56 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Quote:
Originally posted by Fhqwhgads
i got it man.. it works now...
Ok, good.
I noticed that you said: "now i jsut gotta figure otu how to summon multiple people".

Have you figured it out?
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #9  
Old 03-11-2004, 02:39 AM
Fhqwhgads Fhqwhgads is offline
Registered User
Join Date: Nov 2003
Location: Chicago
Posts: 57
Fhqwhgads is on a distinguished road
Send a message via AIM to Fhqwhgads
I dont need it for now lol... I DO NEED HELP WITH THIS:
the command wasthrown works offline, but i cant get it to work online.. i tried everything.. so can someone help me with this?
Reply With Quote
  #10  
Old 03-11-2004, 02:41 AM
Fhqwhgads Fhqwhgads is offline
Registered User
Join Date: Nov 2003
Location: Chicago
Posts: 57
Fhqwhgads is on a distinguished road
Send a message via AIM to Fhqwhgads
aight nvm i got it
Reply With Quote
  #11  
Old 03-11-2004, 03:09 AM
Fhqwhgads Fhqwhgads is offline
Registered User
Join Date: Nov 2003
Location: Chicago
Posts: 57
Fhqwhgads is on a distinguished road
Send a message via AIM to Fhqwhgads
hmm seems i have a problem again... ok i have these two scripts but i cant seem to combine them so they work... like the clientside and the serverside...
CODE 1
NPC Code:

//#SERVERSIDE
if (playerchats && strequals(#c,hi)){
putnpc2 45,35,{
if (created){
setimg black.png;
canbecarried;
}}}


CODE 2
NPC Code:

//#CLIENTSIDE
if (wasthrown){
setcharprop #c,good;
sleep 1;
destroy;
}
canbecarried;


I cant find a way to combine the two so they work... the clientside and the serverside wont make em work together... the separate scripts work fine but not combined...
Reply With Quote
  #12  
Old 03-11-2004, 03:59 AM
-Ramirez- -Ramirez- is offline
Registered User
Join Date: Jun 2002
Location: USA, Ohio
Posts: 729
-Ramirez- has a spectacular aura about-Ramirez- has a spectacular aura about
Quote:
Originally posted by Fhqwhgads
}}}
...

Oh, and canbecarried doesn't work on an NPC Server. It will clientside, but nobody else will see the NPC move positions, nor will you be carrying anything.
__________________
Kat
Reply With Quote
  #13  
Old 03-11-2004, 10:40 AM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
You forgot
if (actionserverside)
or what ever you named it
Also, the if(created){ dosn't need a '{' or an '}' I believe.
__________________
V$:CONFL16T
Reply With Quote
  #14  
Old 03-11-2004, 11:56 AM
SlikRick SlikRick is offline
Retired
Join Date: Aug 2003
Location: Minnesota,USA
Posts: 685
SlikRick is on a distinguished road
hes missing a ; and has an extra }
Reply With Quote
  #15  
Old 03-11-2004, 01:39 PM
Polo Polo is offline
Classic Systems Admin
Join Date: Sep 2002
Location: Vancouver, Canada
Posts: 735
Polo is on a distinguished road
Send a message via AIM to Polo
Quote:
Originally posted by Fhqwhgads
NPC Code:

//#SERVERSIDE
if (playerchats && strequals(#c,hi)){
putnpc2 45,35,{
if (created){
setimg black.png;
canbecarried;
}}}

eek, how untidy :/
__________________
Be good little players, or Master Storm will ban you!



Proof that the staff are crazy..
*Ghost Pirate: I'm a little teacup short and stubbe here is my raygun here is my butt
DragonX: Jumping jack rabbits Batman! Our eggo waffles have been stolen! To the batmobile Robin!
X-Mann (RC): I have a head ache
Reply With Quote
  #16  
Old 03-11-2004, 01:56 PM
Johnny_5 Johnny_5 is offline
Goon
Join Date: Nov 2002
Location: Spring Hill, Florida
Posts: 172
Johnny_5 is on a distinguished road
Send a message via AIM to Johnny_5
Quote:
Originally posted by Fhqwhgads
NPC Code:

//#SERVERSIDE
...

Um dude, there is //#SERVERSIDE, anything not clientside is serverside. So no need to type that
Reply With Quote
  #17  
Old 03-11-2004, 03:16 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Quote:
Originally posted by Johnny_5

Um dude, there is //#SERVERSIDE, anything not clientside is serverside. So no need to type that
Hey! Long time no see!!

And your right, lol !
__________________
V$:CONFL16T
Reply With Quote
  #18  
Old 03-11-2004, 06:19 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Quote:
Originally posted by WanDaMan

Hey! Long time no see!!

And your right, lol !
He said: "There is //#SERVERSIDE" but there is no //#SERVERSIDE.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #19  
Old 03-11-2004, 07:08 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Quote:
Originally posted by osrs


He said: "There is //#SERVERSIDE" but there is no //#SERVERSIDE.
There isn't, I mis-read.
THERE IS NO SUCH THING AS
//#SERVERSIDE
Smeh they should get the picture now.
__________________
V$:CONFL16T
Reply With Quote
  #20  
Old 03-12-2004, 02:00 PM
Johnny_5 Johnny_5 is offline
Goon
Join Date: Nov 2002
Location: Spring Hill, Florida
Posts: 172
Johnny_5 is on a distinguished road
Send a message via AIM to Johnny_5
Hey Wan
But yea, my bad im posting like 6:00 in the morning i meant there isnt
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 08:16 AM.


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