Thread: array search
View Single Post
  #15  
Old 12-29-2005, 04:10 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
I also like to set global variables in weapon scripts for calling functions. So I don't have to use makevar everytime I call something from another script.
PHP Code:
First Weapon:
function 
onCreated() {
  
mud makevar("-SystemMudlib");
}
public function 
additem(itemidqty) {
  
junkhere;

PHP Code:
Second Weapon:
public function 
playerIni() {
  
mud.additem("skill_battleaura1",1);

__________________
Reply With Quote