Thread
:
Buff Bot re-creation NPC getclass() Help
View Single Post
#
26
02-14-2013, 11:18 PM
c0ncrete
Dragon
Join Date: Dec 2009
Posts: 719
that'll happen when the NPC is of a class that isn't covered in the hash ref.
to cover those issues, change this
Code:
my $greeting = $data->{$npcClass}->{greet};
to this
Code:
my $greeting = $data->{$npcClass}->{greet} || "Got %s?";
__________________
I muck about @
The Forge
.
say(rand
99
>
49
?
'try '
.(
'0x'
.join
''
,map{unpack
'H*'
,chr rand
256
}
1
..
2
):
'incoherent nonsense'
)while our
$Noport
=
1
;
c0ncrete
View Public Profile
Send a private message to c0ncrete
Find all posts by c0ncrete