-- function i6600365_Usabled(MapID, InstanceID, TypeID, TargetID) -- local GuildID = guild.GetRoleGuildID(TargetID) -- local GuildPos = guild.GetRoleGuildPos(GuildID, TargetID) -- if GuildPos ~= 2 and GuildPos ~= 3 and GuildPos ~= 4 then -- bRet = 106 -- end -- return bRet, bIgnore -- end -- aux.RegisterItemEvent(6600365, 0, "i6600365_Usabled") -- function i6600365324_Usable(MapID, InstanceID, TypeID, TargetID) -- local GuildID = guild.GetRoleGuildID(TargetID) -- local GuildLevel = role.GetGuildAtt(TargetID, 1) -- local MsgID = msg.BeginMsgEvent() -- msg.AddMsgEvent(MsgID, 102, 900205) -- msg.AddMsgEvent(MsgID, 2, TargetID) -- msg.AddMsgEvent(MsgID, 19, GuildID) -- msg.AddMsgEvent(MsgID, 9, GuildLevel) -- msg.DispatchMapMsgEvent(MsgID, MapID, InstanceID) -- end -- aux.RegisterItemEvent(6600365, 1, "i6600365324_Usable")