View Single Post
  #3  
Old 02-17-2009, 12:22 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
That's just it - player.equip() doesn't seem to exist Anywhere. It goes "An NPC calls
PHP Code:
      temp.pl findplayerbycommunityname(params[1]);
      
PlayerSystem.equip(temp.plparams[2]); 
;
playersystem has
PHP Code:
public function equipItem(temp.pltemp.id) {
  if (
clientr.equipped_id != NULLunequipItem(temp.pl);
  
  
temp.item temp.pl.getItem(temp.id);
  
  if (
temp.item[3] == "ammo") {
    return;
  }
  
  
temp.pl.equip(temp.id);
  
  
temp.pl.triggerclient("gui"this.name"equip");

and all it seems to do is set clientr.equipped_id - but that might be the Custom Inventory doing that, and maybe player.equip() does nothing at all. I'm trying to talk the server in question's owner into ditching the whole half-baked mess in favor of something I understand, but 1) that's how Classic stagnated, 2) he's never frelling ON, and 3) he's apparently still in a swoon over the concept of having Custom Everything.

Me, I just wanna shoot me some zombies.
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote