Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   question bout setplayerprop (https://forums.graalonline.com/forums/showthread.php?t=51528)

Fhqwhgads 03-07-2004 02:30 AM

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;
}


Kristi 03-07-2004 02:50 AM

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.

Fhqwhgads 03-07-2004 02:58 AM

I said I ALSO tried clientside :o

Python523 03-07-2004 06:31 AM

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?

Fhqwhgads 03-07-2004 06:39 PM

thanks python.. i serversided it and made it setCHARprop..
now i jsut gotta figure otu how to summon multiple people

osrs 03-07-2004 07:46 PM

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?

Fhqwhgads 03-07-2004 09:37 PM

i got it man.. it works now...

osrs 03-07-2004 09:56 PM

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?

Fhqwhgads 03-11-2004 02:39 AM

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?

Fhqwhgads 03-11-2004 02:41 AM

aight nvm i got it

Fhqwhgads 03-11-2004 03:09 AM

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...

-Ramirez- 03-11-2004 03:59 AM

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.

WanDaMan 03-11-2004 10:40 AM

You forgot
if (actionserverside)
or what ever you named it;)
Also, the if(created){ dosn't need a '{' or an '}' I believe.

SlikRick 03-11-2004 11:56 AM

hes missing a ; and has an extra }

Polo 03-11-2004 01:39 PM

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 :/

Johnny_5 03-11-2004 01:56 PM

Quote:

Originally posted by Fhqwhgads
NPC Code:

//#SERVERSIDE
...


Um dude, there is //#SERVERSIDE, anything not clientside is serverside. So no need to type that

WanDaMan 03-11-2004 03:16 PM

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:D!!

And your right, lol :)!

osrs 03-11-2004 06:19 PM

Quote:

Originally posted by WanDaMan

Hey! Long time no see:D!!

And your right, lol :)!

He said: "There is //#SERVERSIDE" but there is no //#SERVERSIDE.

WanDaMan 03-11-2004 07:08 PM

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.

Johnny_5 03-12-2004 02:00 PM

Hey Wan :D
But yea, my bad im posting like 6:00 in the morning i meant there isnt :p


All times are GMT +2. The time now is 01:36 AM.

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