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 01-03-2004, 02:34 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
Arrow Npc problems...

Ok, here's my problem. When I make a shop, and npc's that you can buy, it works perfect in offline mode, like you can buy the npc, and it works too. But when I upload it online, you can't buy it, and even if you add it throught the RC, it still doesn't do anything. Should i put something like //#CLIENTSIDE before the script or something? I'm having the same problem with warprings. The animation plays, but it doesnt warp you even though i put the
Quote:
setlevel2 filename,x,y;
in. So can someone please help me out with that? I would really appreciate it!
Reply With Quote
  #2  
Old 01-03-2004, 02:49 AM
Spark910 Spark910 is offline
Ex-Graal Global
Spark910's Avatar
Join Date: Oct 2001
Location: England
Posts: 10,892
Spark910 has a spectacular aura about
online, using NPC server, you use:

NPC Code:
addweapon <name>;



and the NPC code in the NPC Server weapon list, so don't use toweapons if you are.
__________________
--Spark911
Reply With Quote
  #3  
Old 01-03-2004, 03:14 AM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Re: Npc problems...

setlevel2 must be serverside, not clientside.
Reply With Quote
  #4  
Old 01-03-2004, 03:16 AM
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
As Loriel said, setlevel2 is serverside only.

As for the shop, if you have a npcserver, the weapon must be in the npc weapon list, and you must use addweapon <weaponname> (addweapon is also serverside only)
__________________
Maniaman

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

Reply With Quote
  #5  
Old 01-03-2004, 03:33 AM
tlf288 tlf288 is offline
Registered User
tlf288's Avatar
Join Date: Nov 2001
Location: new account: Trevor
Posts: 0
tlf288 is on a distinguished road
Send a message via AIM to tlf288 Send a message via Yahoo to tlf288
it neems like you don't quite understand the npc-server. i suggest reading the document i have attached. although it doesn't have the most updated information, it should give you an understanding of what the npc-server is and how it works.
Attached Files
File Type: txt npcserver.txt (12.5 KB, 163 views)
__________________
new account: Trevor

Last edited by tlf288; 01-03-2004 at 04:50 AM..
Reply With Quote
  #6  
Old 01-03-2004, 04:07 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
thanks everyone! Yeah, im not the manager or anything, so i dont really know the npc-server. Im fairly new to graal too, maybe few hundred hours of combined time. The weapons are already on the list, so thats the same. As for the set level, do you like put //#SERVERSIDE before the setlevel index,x,y? or before the whole script? Oh and addweapon name; says its an unknown command. If you do it, it just takes money, and doesnt add anything. Oh and what about the warprings?
Reply With Quote
  #7  
Old 01-03-2004, 04:20 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
//#CLIENTSIDE in a script is a divider.

Code above it is dealt with by the server.
Code below it is dealt with by the client.

For this reason, there exists no //#SERVERSIDE.
Reply With Quote
  #8  
Old 01-03-2004, 04:47 AM
tlf288 tlf288 is offline
Registered User
tlf288's Avatar
Join Date: Nov 2001
Location: new account: Trevor
Posts: 0
tlf288 is on a distinguished road
Send a message via AIM to tlf288 Send a message via Yahoo to tlf288
Quote:
Originally posted by Fhqwhgads
do you like put //#SERVERSIDE before the setlevel index,x,y?

Oh and addweapon name; says its an unknown command.

Oh and what about the warprings?
as lance said, no.

it is an unknown command, to the client. if the addweapon command is being called serverside, it will work the way it is designed to.

what about 'em? i think loriel answered your question.
__________________
new account: Trevor
Reply With Quote
  #9  
Old 01-03-2004, 10:51 AM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
I think you are having trouble coordinating the clientside parts of your script with the supposed-to-be-serverside setlevel2... ?
Reply With Quote
  #10  
Old 01-03-2004, 02:39 PM
dlang dlang is offline
Yoshi!
dlang's Avatar
Join Date: Oct 2002
Location: Houston, Texas
Posts: 406
dlang is on a distinguished road
Send a message via AIM to dlang Send a message via MSN to dlang
Quote:
Originally posted by xManiamaNx
As for the shop, if you have a npcserver, the weapon must be in the npc weapon list, and you must use addweapon <weaponname> (addweapon is also serverside only)
addweapon is not serverside only.
Note by Loriel: This is not true.
__________________
Where do I take this pain of mine?
I run but it stays right by my side.
So tear me open, pour me out,
there's things inside that scream and shout.
And the pain still hates me, so hold me until it sleeps.

---------------

Last edited by Loriel; 01-03-2004 at 02:53 PM..
Reply With Quote
  #11  
Old 01-03-2004, 04:38 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 dlang
addweapon is not serverside only.
I'll give you a gift if you add it client-side. (without triggeraction)
__________________
"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
  #12  
Old 01-04-2004, 07:32 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
ok, heres the script, whats wrong with it?
----------------------------------------------------

//#CLIENTSIDE
if (playerenters&&!hasweapon(Town Main Warp)) {show;
}
if (playerenters&&hasweapon(Town Main Warp)) {hide;
}
if (playertouchsme) {
toweapons Town Main Warp;
hide;
}
if (weaponfired&&!strequals(#L,serverstart.graal)) {
freezeplayer 1.5;
playerdir=2;
sleep .05;
playery=playery-.1;
playerdir=3;
sleep .05;
playery=playery-.1;
playerdir=0;
sleep .05;
playery=playery-.1;
playerdir=1;
sleep .05;
playery=playery-.1;
playerdir=2;
sleep .05;
playery=playery-.1;
playerdir=3;
sleep .05;
playery=playery-.1;
playerdir=0;
sleep .05;
playery=playery-.1;
playerdir=1;
sleep .05;
playery=playery-.1;
playerdir=2;
sleep .05;
playery=playery-.1;
playerdir=3;
sleep .05;
playery=playery-.1;
playerdir=0;
sleep .05;
playery=playery-.1;
playerdir=1;
sleep .05;
playery=playery-.1;
playerdir=2;
sleep .05;
playery=playery-.1;
playerdir=3;
sleep .05;
playery=playery-.1;
playerdir=0;
sleep .05;
playery=playery-.1;
playerdir=1;
sleep .05;
playery=playery-.1;
playerdir=2;
sleep .05;
playery=playery-.1;
playerdir=3;
sleep .05;
playery=playery-.1;
playerdir=0;
sleep .05;
playery=playery-.1;
playerdir=1;
sleep .05;
playery=playery-.1;
playerdir=2;
sleep .05;
playery=playery-.1;
playerdir=3;
sleep .05;
playery=playery-.1;
playerdir=0;
sleep .05;
playery=playery-.1;
playerdir=1;
sleep .05;
playery=playery-.1;
playerdir=2;
}
//#SERVERSIDE
setlevel2 serverstart.graal;

-------------------------------------------------------
Reply With Quote
  #13  
Old 01-04-2004, 07:45 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
oh dear GOD

Read -> Think -> Think some more -> Reread -> Think about what you read -> Post, we've already said //#SERVERSIDE doesn't exist
Reply With Quote
  #14  
Old 01-04-2004, 07:49 PM
D1ce2 D1ce2 is offline
Registered User
Join Date: Dec 2003
Location: United Kingdom
Posts: 446
D1ce2 is on a distinguished road
Send a message via AIM to D1ce2 Send a message via Yahoo to D1ce2
Quote:
Originally posted by Fhqwhgads
ok, heres the script, whats wrong with it?
----------------------------------------------------

Quote removed for the sake of readability -Loriel

-------------------------------------------------------
That should be okay i think.
__________________

The time is coming

Last edited by Loriel; 01-05-2004 at 02:54 PM..
Reply With Quote
  #15  
Old 01-04-2004, 07:55 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
it just doesnt warp... it does the ani but doesnt warp... cant figure it out
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 04:11 AM.


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