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 10-12-2003, 02:06 PM
bashjgovers bashjgovers is offline
Registered User
Join Date: Aug 2003
Posts: 31
bashjgovers is on a distinguished road
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))
Reply With Quote
  #2  
Old 10-12-2003, 02:30 PM
GoZelda GoZelda is offline
Mister 1,000,000
GoZelda's Avatar
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
GoZelda will become famous soon enough
Send a message via AIM to GoZelda Send a message via MSN to GoZelda
Maybe tell us what doesn't work too...
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #3  
Old 10-12-2003, 03:10 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
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' ?
__________________
"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
  #4  
Old 10-12-2003, 06:34 PM
Goboom Goboom is offline
Pixel Monkey
Goboom's Avatar
Join Date: Dec 2001
Location: Michigan
Posts: 1,702
Goboom is on a distinguished road
Send a message via ICQ to Goboom Send a message via AIM to Goboom Send a message via MSN to Goboom Send a message via Yahoo to Goboom
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)){
}
}



__________________
Reply With Quote
  #5  
Old 10-12-2003, 11:52 PM
bashjgovers bashjgovers is offline
Registered User
Join Date: Aug 2003
Posts: 31
bashjgovers is on a distinguished road
so without //#CLIENTSIDE

it never works?
Reply With Quote
  #6  
Old 10-13-2003, 01:14 AM
Goboom Goboom is offline
Pixel Monkey
Goboom's Avatar
Join Date: Dec 2001
Location: Michigan
Posts: 1,702
Goboom is on a distinguished road
Send a message via ICQ to Goboom Send a message via AIM to Goboom Send a message via MSN to Goboom Send a message via Yahoo to Goboom
Quote:
Originally posted by bashjgovers
so without //#CLIENTSIDE

it never works?
If you have an NPCs Server then you need //#CLIENTSIDE.
__________________
Reply With Quote
  #7  
Old 10-13-2003, 01:24 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Playerchats isn't only clientside, it works serverside too. Just not in WNPC's.
Reply With Quote
  #8  
Old 10-13-2003, 01:24 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 Goboom
If you have an NPCs Server then you need //#CLIENTSIDE.
since when is playerchats clientside only?
Reply With Quote
  #9  
Old 10-13-2003, 02:05 AM
DarkShadows_Legend DarkShadows_Legend is offline
Cult of the Winky
DarkShadows_Legend's Avatar
Join Date: Apr 2003
Location: Florida
Posts: 614
DarkShadows_Legend is on a distinguished road
Send a message via AIM to DarkShadows_Legend
This should help you out a little bit.
Attached Files
File Type: txt npcserverdoc.txt (13.2 KB, 134 views)
__________________
- Criminal X

"I rather be hated for being myself, than be liked for being what you like best. I go above the influence, not under." - Me
Reply With Quote
  #10  
Old 10-13-2003, 03:15 AM
Goboom Goboom is offline
Pixel Monkey
Goboom's Avatar
Join Date: Dec 2001
Location: Michigan
Posts: 1,702
Goboom is on a distinguished road
Send a message via ICQ to Goboom Send a message via AIM to Goboom Send a message via MSN to Goboom Send a message via Yahoo to Goboom
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.
__________________
Reply With Quote
  #11  
Old 10-13-2003, 03:26 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 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
Reply With Quote
  #12  
Old 10-13-2003, 04:41 AM
Goboom Goboom is offline
Pixel Monkey
Goboom's Avatar
Join Date: Dec 2001
Location: Michigan
Posts: 1,702
Goboom is on a distinguished road
Send a message via ICQ to Goboom Send a message via AIM to Goboom Send a message via MSN to Goboom Send a message via Yahoo to Goboom
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.
__________________
Reply With Quote
  #13  
Old 10-13-2003, 04:01 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 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?
__________________
"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
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 12:25 AM.


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