Graal Forums  

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

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-17-2004, 03:37 AM
Salaisuus Salaisuus is offline
Registered User
Join Date: Mar 2004
Posts: 68
Salaisuus is on a distinguished road
toweapons/addweapon?

addweapon wont work for me at all, why why why?
toweapons works just fine with npc sever except when used clientside...
But yeah, plah plah, how do I get addweapon to effing work??


Oh and when I try to save classes RC says:
"Script *scriptname* saved (no npc with this class on the server)."
And wont display the file. Even tho there is an npc with that class on the server. Why oh why?

Bah.
Before I started my server I scripted everything I needed and then it turned out most of my stuff didnt work with npc server.
Argh.

So on a side note to that Im hiring a freaking scripter if anyone would care to help with a few simple (simple? maybe...) npcs.
  #2  
Old 06-17-2004, 04:14 AM
Malinko Malinko is offline
Unholy Nation
Join Date: Mar 2004
Location: Massachusetts, U.S.A.
Posts: 1,782
Malinko is on a distinguished road
Send a message via AIM to Malinko
addweapon = serverside.
toweapons = the devil.
  #3  
Old 06-17-2004, 04:45 AM
Xecutor Xecutor is offline
Former UN Manager
Join Date: Apr 2004
Posts: 117
Xecutor is on a distinguished road
You have to have weapons in your weapons list(sword icon) to use addweapon (it adds a weapon to someones inventory).
toweapons should not be used if you have an npcserver.
To get the class file, look in the folder scripts.
  #4  
Old 06-17-2004, 05:31 AM
matt8891 matt8891 is offline
Registered User
matt8891's Avatar
Join Date: Jul 2003
Location: New York
Posts: 0
matt8891 is on a distinguished road
Send a message via AIM to matt8891 Send a message via Yahoo to matt8891
If you want to use toweapons;(adds npc to NPC-Control) do this:

if (actionserverside)
{if (playertouchsme) toweapons;
}

If you want to use addweapons;(adds NPC thats already in NPC-Control to player attributes) do this:

//#CLIENTSIDE
{if (playertouchsme)
addweapon (weaponame)
}
  #5  
Old 06-17-2004, 05:38 AM
Duwul Duwul is offline
Registered User
Join Date: Nov 2003
Posts: 105
Duwul is on a distinguished road
Quote:
Originally Posted by matt8891
If you want to use toweapons;(adds npc to NPC-Control) do this:

if (actionserverside)
{if (playertouchsme) toweapons;
}

If you want to use addweapons;(adds NPC thats already in NPC-Control to player attributes) do this:

//#CLIENTSIDE
{if (playertouchsme)
addweapon (weaponame)
}
Erm, wtf?
addweapon only works serverside, and don't use toweapons at all =/
__________________
-Ajira
Liek, omigosh.
<3 DoomsDay.
  #6  
Old 06-17-2004, 09:41 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
Do not use toweapons. It is deprecated and causes problems with the NPC-Server.

Use NC to add the weapon to the weapons database, then use the serverside command:
NPC Code:
addweapon weaponname;



LordVyse, a warning: Those who continually post bad advice in the scripting forum become masked from it.
  #7  
Old 06-17-2004, 05:36 PM
Salaisuus Salaisuus is offline
Registered User
Join Date: Mar 2004
Posts: 68
Salaisuus is on a distinguished road
Right... So all I need to do Is ad the weapon script to the npcs before using addweapon.

I feel like getting rid of npc server, I dont seem to need it for all that much...
  #8  
Old 06-17-2004, 05:42 PM
matt8891 matt8891 is offline
Registered User
matt8891's Avatar
Join Date: Jul 2003
Location: New York
Posts: 0
matt8891 is on a distinguished road
Send a message via AIM to matt8891 Send a message via Yahoo to matt8891
Quote:
Originally Posted by Lance
Do not use toweapons. It is deprecated and causes problems with the NPC-Server.

Use NC to add the weapon to the weapons database, then use the serverside command:
NPC Code:
addweapon weaponname;



LordVyse, a warning: Those who continually post bad advice in the scripting forum become masked from it.
I still dont understand why toweapons is bad to use....If its so BAD to use why hasnt anyone removed it from the Commands?
  #9  
Old 06-17-2004, 05:44 PM
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
Because people still use it and Stefan does not want to break scripts.
  #10  
Old 06-17-2004, 08:47 PM
Xecutor Xecutor is offline
Former UN Manager
Join Date: Apr 2004
Posts: 117
Xecutor is on a distinguished road
Having a serveroption to disable it like mentioned in some other thread would be cool.
  #11  
Old 06-17-2004, 09:16 PM
matt8891 matt8891 is offline
Registered User
matt8891's Avatar
Join Date: Jul 2003
Location: New York
Posts: 0
matt8891 is on a distinguished road
Send a message via AIM to matt8891 Send a message via Yahoo to matt8891
Quote:
Originally Posted by Xecutor
Having a serveroption to disable it like mentioned in some other thread would be cool.
Maybe someone could script that into NPC-Server.
  #12  
Old 06-17-2004, 10:03 PM
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 once suggested something like disablescriptcommands=toweapons,sendpm,...
  #13  
Old 06-18-2004, 06:16 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
About the class npc, you have to call the script (using the serverside command join) so it will show in the classes. If you have already called the script and it still does not show, so i have no clue.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
  #14  
Old 06-18-2004, 07:09 PM
Ningnong Ningnong is offline
Registered User
Ningnong's Avatar
Join Date: Nov 2002
Location: < -- way
Posts: 262
Ningnong is on a distinguished road
Quote:
Originally Posted by Salaisuus
Right... So all I need to do Is ad the weapon script to the npcs before using addweapon.

I feel like getting rid of npc server, I dont seem to need it for all that much...
Don't get rid of the npc server, you will find it very useful. Just get someone who can script to edit your npcs for use with the npc-server.
__________________
Former Global Scripting Team Member


  #15  
Old 06-18-2004, 09:57 PM
Malinko Malinko is offline
Unholy Nation
Join Date: Mar 2004
Location: Massachusetts, U.S.A.
Posts: 1,782
Malinko is on a distinguished road
Send a message via AIM to Malinko
Classic still uses toweapons right? Since they have no NPC Server. N-Pulse did use it til we converted it all.
Closed Thread


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 10:49 PM.


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