Anyone have any examples on how to use the open command?
Moderator: Team Members
- Astal
- Posts: 96
- Joined: Tue Dec 09, 2008 1:35 pm
Anyone have any examples on how to use the open command?
Like in scripts. Say i have a chest, i want a player to open, when he does have it give him, gear, summon mobs and then despawn, cant find anything on forums or wiki. If you cant do that atm, ill just make it on attack
I DIE FREE!!
- Scatman
- Retired
- Posts: 1688
- Joined: Wed Apr 16, 2008 5:44 am
- EQ2Emu Server: Scatman's Word
- Characters: Scatman
- Location: New Jersey
Re: Anyone have any examples on how to use the open command?
Use John's favorite function 'casted_on'. So give your box the "open" entity command and 'show_command_icon'=1. When you click on the box, the casted_on(NPC, Spawn, SpellName) will be ran. So something like this:
Code: Select all
function casted_on(NPC, Spawn, SpellName)
if SpellName == "open" then
SummonItem(Spawn, 500)
end
endWho is online
Users browsing this forum: No registered users and 0 guests