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 09-10-2011, 11:06 PM
furry_mougle furry_mougle is offline
big heart
furry_mougle's Avatar
Join Date: Aug 2011
Posts: 42
furry_mougle is an unknown quantity at this point
Quote:
Originally Posted by fowlplay4 View Post
A class is basically just for pasting functions into your script/weapon/level-npc. It doesn't actually exist as anything until it's joined to an DB-NPC Weapon-NPC, Level-NPC, or an object.

By System NPC I just mean a weapon that is added to the player that's primarily used for background tasks and as a database. In this case it's used to keep track of what weapon you currently have equipped and provides a standard way of equipping a weapon.

If you have two weapons: A and B, and you equip A how will B know that you have equipped A if you only tell A that it's equipped?

To deal with that you use a system npc and route your equip requests through it like my example does.

You don't have to use -System/Equipment as the weapon name either, you can use any name just make sure you update the scripts to make calls to it instead of -System/Equipment.
Ah OK. I thought you meant an actual NPC, but you just meant a weapon used as a System.

edit: nothing works and I pretty much managed to messed up my weapons to the point that I can't even execute a basic player.chat, will probably have to make a completely different thread attempting to fix this (it's probably a server bug not sure)

Anyway thanks for attempting to help me I guess
__________________
Quote:
Originally Posted by ffcmike View Post
But make sure to change beer.png to Orange Juice.
pay bills to play graal

Last edited by furry_mougle; 09-11-2011 at 05:40 AM..
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 05:32 AM.


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