Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   help (https://forums.graalonline.com/forums/showthread.php?t=48578)

bashjgovers 10-12-2003 02:06 PM

help
 
hi

im used to script offline, and that all works great. But since a short time i work for a playerworld and if i test my scripts online i see much of them dont work.

Can anyone tell me wich script i have to replace to make it work? like replacing if (playersays(message)) with if (playerchats&&strequals(#c,message))

GoZelda 10-12-2003 02:30 PM

Maybe tell us what doesn't work too...

osrs 10-12-2003 03:10 PM

Some commands work client-side and some work server-side dude, if you are using a client-side command in a server-side mode your script won't work.
Hmm, are you using some of theses?

- followplayer;
- playersays;
- setbackpal;

if yes, they are deprecated.

also haven't you forgot the '//#CLIENTSIDE' ?

Goboom 10-12-2003 06:34 PM

Re: help
 
Quote:

Originally posted by bashjgovers
if (playerchats&&strequals(#c,message))
Pet Peave:
if (playerchats&&strequals(#c,message))
All Better:
NPC Code:

//#CLIENTSIDE
if (playerchats){
if (strequals(#c,message)){
}
}


;)

bashjgovers 10-12-2003 11:52 PM

so without //#CLIENTSIDE

it never works?

Goboom 10-13-2003 01:14 AM

Quote:

Originally posted by bashjgovers
so without //#CLIENTSIDE

it never works?

If you have an NPCs Server then you need //#CLIENTSIDE.

DustyPorViva 10-13-2003 01:24 AM

Playerchats isn't only clientside, it works serverside too. Just not in WNPC's.

Python523 10-13-2003 01:24 AM

Quote:

Originally posted by Goboom
If you have an NPCs Server then you need //#CLIENTSIDE.
since when is playerchats clientside only?

DarkShadows_Legend 10-13-2003 02:05 AM

1 Attachment(s)
This should help you out a little bit.

Goboom 10-13-2003 03:15 AM

Quote:

Originally posted by Python523


since when is playerchats clientside only?

When did I say it was? I was refering to most NPCs that that particular person would be scripting in NC.

Python523 10-13-2003 03:26 AM

Quote:

Originally posted by Goboom
When did I say it was? I was refering to most NPCs that that particular person would be scripting in NC.
All he said was playerchats&&strequals(#c,) o_O

Goboom 10-13-2003 04:41 AM

Quote:

Originally posted by Python523


All he said was playerchats&&strequals(#c,) o_O

Oh, I see where your getting at.
NPC Code:
//#CLIENTSIDE
if (playerchats){
if (strequals(#c,message)){
}
}


It was an assumption.

osrs 10-13-2003 04:01 PM

Quote:

Originally posted by bashjgovers
so without //#CLIENTSIDE

it never works?

A client-side NPC without '//#CLIENTSIDE' obviously won't work.
Do you know what mean client-side and server-side?


All times are GMT +2. The time now is 06:16 AM.

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