![]() |
quick scripting question
Hello.
Say I wanted to make a bank and the account script was going to go into npc-control. What would I put in that specified object to join it to an npc? like when its a class, you would do: join (classname); is it : join (npcname); ? thanks, jamerson |
The only thing that can be in a join() is a class.
I'm not quite following what you want, can you be more specific? |
You mean a DB-NPC?
|
I tend to think of classes as "function packs" for existing npcs, but here's an example of how they work. ( I assume that what's you don't understand. )
Class: example PHP Code:
PHP Code:
|
Also, it is
join("classname"); not join (classname); Firstly, join, like other functions, should not have a space between the function name and the parenthesis. Secondly, you must enclose strings(like the name of a class or weapon) in quotation marks, or else Graal will be trying to find a variable. |
What im asking is how do you make a level npc have the same function as the db-npc. Its a bank system, and when you update the level the bank account money n your account resets, thats why i want to use a db npc. How do I make the npc in the level use the script thats in a db npc?
|
Quote:
In your DB-NPC (named Example in this case): PHP Code:
PHP Code:
|
Quote:
PHP Code:
|
Quote:
|
Quote:
|
Quote:
|
You can also do a class like this:
PHP Code:
PHP Code:
|
| All times are GMT +2. The time now is 02:17 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.