Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-10-2005, 04:49 PM
Thrashsoul3 Thrashsoul3 is offline
Registered User
Join Date: Mar 2005
Posts: 354
Thrashsoul3 is an unknown quantity at this point
Problem

Well Ive been working on a new quest for babylon, but for some odd reason,
I cant get this to work.

PHP Code:
// Graal2002 NPC by Stefan Knorr
//#CLIENTSIDE
if (created){
  
// Initialize the attributes
  
showcharacter;
  
setcharprop #3,head19.png;
  
setcharprop #C0,orange;
  
setcharprop #C1,gray;
  
setcharprop #C2,gray;
  
setcharprop #C3,brown;
  
setcharprop #C4,black;
  
setcharprop #2,noshield.gif;
  
shieldpower 1;
  
dir 2;
}
if (
playertouchsme && strtofloat(#s(clientr.ucquest)) == 2){

  
say2 Hmm.... I wonder how #b
  
the curator found out about #b
  
thatAnyways he told the #b
  
story to you wrong, as the #b
  
Captain was throwing it Joe #b
  
jumped into the water and #b
  
dived for itI'd don't know #b
  
why he did it but he probably #b
  
brought it to his house north #b
  
of here.;
  
triggeraction 0,0,serverside,-System/System,conquest,3;

Then the part in the system npc.
PHP Code:
 if (action == "conquest"clientr.ucquest params[1]; 
__________________
Thrash
Reply With Quote
  #2  
Old 06-10-2005, 05:09 PM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
HTML Code:
if (actionserverside) {
}
Is what you want.

Or, if you are using GScript2 (which it looks like you may... from that params[]).
HTML Code:
function onActionServerSide()
{
}
It also may be a better idea to do the triggeraction before the say2, as say2 probably is blocking (eg; the triggeraction does not occur until after the player has read the entire message and closed it).
Reply With Quote
  #3  
Old 06-10-2005, 05:36 PM
Thrashsoul3 Thrashsoul3 is offline
Registered User
Join Date: Mar 2005
Posts: 354
Thrashsoul3 is an unknown quantity at this point
PHP Code:
function onActionserverside(action) {
  if (
action == "conquest"clientr.ucquest params[1];

that was already in the code above it, I got the same thing working on a different npc but it wont work on this one.
__________________
Thrash
Reply With Quote
  #4  
Old 06-10-2005, 06:25 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Why is the character clientside? It's only serverside. :O
__________________
Reply With Quote
  #5  
Old 06-10-2005, 09:38 PM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
Quote:
Originally Posted by xAndrewx
Why is the character clientside? It's only serverside. :O
What?
__________________
Liek omigosh.

Reply With Quote
  #6  
Old 06-10-2005, 06:51 PM
Thrashsoul3 Thrashsoul3 is offline
Registered User
Join Date: Mar 2005
Posts: 354
Thrashsoul3 is an unknown quantity at this point
Nevermind nothing was wrong gmap just needed updating ROFL
__________________
Thrash
Reply With Quote
  #7  
Old 06-11-2005, 09:29 AM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
//#CLIENTSIDE
if (created){
// Initialize the attributes
showcharacter;
setcharprop #3,head19.png;
setcharprop #C0,orange;
setcharprop #C1,gray;
setcharprop #C2,gray;
setcharprop #C3,brown;
setcharprop #C4,black;
setcharprop #2,noshield.gif;
shieldpower = 1;
dir = 2;
}

Is serverside. Not client :o..(Pretty sure it's only serverside :o)
__________________
Reply With Quote
  #8  
Old 06-11-2005, 03:52 PM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
Quote:
Originally Posted by xAndrewx
//#CLIENTSIDE
if (created){
// Initialize the attributes
showcharacter;
setcharprop #3,head19.png;
setcharprop #C0,orange;
setcharprop #C1,gray;
setcharprop #C2,gray;
setcharprop #C3,brown;
setcharprop #C4,black;
setcharprop #2,noshield.gif;
shieldpower = 1;
dir = 2;
}

Is serverside. Not client :o..(Pretty sure it's only serverside :o)
Nope, they can be both Clientside and Serverside.
__________________
Liek omigosh.

Reply With Quote
  #9  
Old 06-11-2005, 03:13 PM
xManiamaNx xManiamaNx is offline
Supreme Dictator
xManiamaNx's Avatar
Join Date: Nov 2002
Location: 127.0.0.1
Posts: 385
xManiamaNx is on a distinguished road
Send a message via MSN to xManiamaNx Send a message via Yahoo to xManiamaNx
showcharacter npcs can be both serverside and clientside.
__________________
Maniaman

Play Maloria Now: [2.3] [3]
Maloria Website

Reply With Quote
  #10  
Old 06-11-2005, 05:23 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Oh, my mistake. Jenn allways made it serverside on Era. I learned from Jenn .
__________________
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 07:51 AM.


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