return {
Active = true,
Debug = false,
Command = "/shop",
Packet = 56,
PacketName = "OPENSHOP",
PacketNameClose = "CLOSEHOP",
PacketBuy = "BUYPACKET",
PacketSlide = "PACKETSLIDE",
Packages = {
[00] = { Name = "BloodAngel Wizard Full +15", Valor = 4500, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,37), SlotLWeapon = GET_ITEM(05,100), SlotRWeapon = GET_ITEM(06,20), SlotHelm = GET_ITEM(07,101), SlotArmor = GET_ITEM(08,101), SlotGloves = GET_ITEM(10,101), SlotPants = GET_ITEM(09,101), SlotBoots = GET_ITEM(11,101), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[01] = { Name = "BloodAngel Knight Full +15", Valor = 4500, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,36), SlotLWeapon = GET_ITEM(00,100), SlotRWeapon = GET_ITEM(00,100), SlotHelm = GET_ITEM(07,102), SlotArmor = GET_ITEM(08,102), SlotGloves = GET_ITEM(10,102), SlotPants = GET_ITEM(09,102), SlotBoots = GET_ITEM(11,102), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[02] = { Name = "BloodAngel Fairy Full +15", Valor = 4500, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,38), SlotLWeapon = -1, SlotRWeapon = GET_ITEM(04,110), SlotHelm = GET_ITEM(07,103), SlotArmor = GET_ITEM(08,103), SlotGloves = GET_ITEM(10,103), SlotPants = GET_ITEM(09,103), SlotBoots = GET_ITEM(11,103), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[03] = { Name = "BloodAngel Magic Full +15", Valor = 4500, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,39), SlotLWeapon = GET_ITEM(0,100), SlotRWeapon = GET_ITEM(0,100), SlotHelm = -1, SlotArmor = GET_ITEM(08,104), SlotGloves = GET_ITEM(10,104), SlotPants = GET_ITEM(09,104), SlotBoots = GET_ITEM(11,104), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[04] = { Name = "BloodAngel Lord Full +15", Valor = 4500, SlotPet = GET_ITEM(13,04), SlotWing = GET_ITEM(12,40), SlotLWeapon = GET_ITEM(2,100), SlotRWeapon = GET_ITEM(6,021), SlotHelm = GET_ITEM(07,105), SlotArmor = GET_ITEM(08,105), SlotGloves = GET_ITEM(10,105), SlotPants = GET_ITEM(09,105), SlotBoots = GET_ITEM(11,105), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[05] = { Name = "BloodAngel Fighter Full +15", Valor = 4500, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,50), SlotLWeapon = GET_ITEM(0,110), SlotRWeapon = GET_ITEM(0,110), SlotHelm = GET_ITEM(07,106), SlotArmor = GET_ITEM(08,106), SlotGloves = -1, SlotPants = GET_ITEM(09,106), SlotBoots = GET_ITEM(11,106), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[06] = { Name = "BloodAngel Sum Full +15", Valor = 4500, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,43), SlotLWeapon = GET_ITEM(5,100), SlotRWeapon = GET_ITEM(0,002), SlotHelm = GET_ITEM(07,107), SlotArmor = GET_ITEM(08,107), SlotGloves = GET_ITEM(10,107), SlotPants = GET_ITEM(09,107), SlotBoots = GET_ITEM(11,107), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[07] = { Name = "DarkAngel Wizard Full +15", Valor = 5100, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,37), SlotLWeapon = GET_ITEM(5,101), SlotRWeapon = GET_ITEM(6,020), SlotHelm = GET_ITEM(07,108), SlotArmor = GET_ITEM(08,108), SlotGloves = GET_ITEM(10,108), SlotPants = GET_ITEM(09,108), SlotBoots = GET_ITEM(11,108), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[08] = { Name = "DarkAngel Knight Full +15", Valor = 5100, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,36), SlotLWeapon = GET_ITEM(0,101), SlotRWeapon = GET_ITEM(0,101), SlotHelm = GET_ITEM(07,109), SlotArmor = GET_ITEM(08,109), SlotGloves = GET_ITEM(10,109), SlotPants = GET_ITEM(09,109), SlotBoots = GET_ITEM(11,109), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[09] = { Name = "DarkAngel Fairy Full +15", Valor = 5100, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,38), SlotLWeapon = -1, SlotRWeapon = GET_ITEM(4,111), SlotHelm = GET_ITEM(07,110), SlotArmor = GET_ITEM(08,110), SlotGloves = GET_ITEM(10,110), SlotPants = GET_ITEM(09,110), SlotBoots = GET_ITEM(11,110), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[10] = { Name = "DarkAngel Magic Full +15", Valor = 5100, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,39), SlotLWeapon = GET_ITEM(0,101), SlotRWeapon = GET_ITEM(0,101), SlotHelm = -1, SlotArmor = GET_ITEM(08,111), SlotGloves = GET_ITEM(10,111), SlotPants = GET_ITEM(09,111), SlotBoots = GET_ITEM(11,111), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[11] = { Name = "DarkAngel Lord Full +15", Valor = 5100, SlotPet = GET_ITEM(13,04), SlotWing = GET_ITEM(12,40), SlotLWeapon = GET_ITEM(2,101), SlotRWeapon = GET_ITEM(6,021), SlotHelm = GET_ITEM(07,112), SlotArmor = GET_ITEM(08,112), SlotGloves = GET_ITEM(10,112), SlotPants = GET_ITEM(09,112), SlotBoots = GET_ITEM(11,112), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[12] = { Name = "DarkAngel Fighter Full +15", Valor = 5100, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,50), SlotLWeapon = GET_ITEM(0,111), SlotRWeapon = GET_ITEM(0,111), SlotHelm = GET_ITEM(07,113), SlotArmor = GET_ITEM(08,113), SlotGloves = -1, SlotPants = GET_ITEM(09,113), SlotBoots = GET_ITEM(11,113), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[13] = { Name = "DarkAngel Sum Full +15", Valor = 5100, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,43), SlotLWeapon = GET_ITEM(5,101), SlotRWeapon = GET_ITEM(0,002), SlotHelm = GET_ITEM(07,114), SlotArmor = GET_ITEM(08,114), SlotGloves = GET_ITEM(10,114), SlotPants = GET_ITEM(09,114), SlotBoots = GET_ITEM(11,114), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[14] = { Name = "HolyAngel Wizard Full +15", Valor = 5700, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,37), SlotLWeapon = GET_ITEM(5,102), SlotRWeapon = GET_ITEM(6,020), SlotHelm = GET_ITEM(07,115), SlotArmor = GET_ITEM(08,115), SlotGloves = GET_ITEM(10,115), SlotPants = GET_ITEM(09,115), SlotBoots = GET_ITEM(11,115), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[15] = { Name = "HolyAngel Knight Full +15", Valor = 5700, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,36), SlotLWeapon = GET_ITEM(0,102), SlotRWeapon = GET_ITEM(0,102), SlotHelm = GET_ITEM(07,116), SlotArmor = GET_ITEM(08,116), SlotGloves = GET_ITEM(10,116), SlotPants = GET_ITEM(09,116), SlotBoots = GET_ITEM(11,116), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[16] = { Name = "HolyAngel Fairy Full +15", Valor = 5700, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,38), SlotLWeapon = -1, SlotRWeapon = GET_ITEM(4,112), SlotHelm = GET_ITEM(07,117), SlotArmor = GET_ITEM(08,117), SlotGloves = GET_ITEM(10,117), SlotPants = GET_ITEM(09,117), SlotBoots = GET_ITEM(11,117), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[17] = { Name = "HolyAngel Magic Full +15", Valor = 5700, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,39), SlotLWeapon = GET_ITEM(0,102), SlotRWeapon = GET_ITEM(0,102), SlotHelm = -1, SlotArmor = GET_ITEM(08,118), SlotGloves = GET_ITEM(10,118), SlotPants = GET_ITEM(09,118), SlotBoots = GET_ITEM(11,118), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[18] = { Name = "HolyAngel Lord Full +15", Valor = 5700, SlotPet = GET_ITEM(13,04), SlotWing = GET_ITEM(12,40), SlotLWeapon = GET_ITEM(2,102), SlotRWeapon = GET_ITEM(6,21), SlotHelm = GET_ITEM(07,119), SlotArmor = GET_ITEM(08,119), SlotGloves = GET_ITEM(10,119), SlotPants = GET_ITEM(09,119), SlotBoots = GET_ITEM(11,119), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[19] = { Name = "HolyAngel Fighter Full +15", Valor = 5700, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,50), SlotLWeapon = GET_ITEM(0,112), SlotRWeapon = GET_ITEM(0,112), SlotHelm = GET_ITEM(07,120), SlotArmor = GET_ITEM(08,120), SlotGloves = -1, SlotPants = GET_ITEM(09,120), SlotBoots = GET_ITEM(11,120), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[20] = { Name = "HolyAngel Sum Full +15", Valor = 5700, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,43), SlotLWeapon = GET_ITEM(5,102), SlotRWeapon = GET_ITEM(0,002), SlotHelm = GET_ITEM(07,121), SlotArmor = GET_ITEM(08,121), SlotGloves = GET_ITEM(10,121), SlotPants = GET_ITEM(09,121), SlotBoots = GET_ITEM(11,121), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[21] = { Name = "Awakening Wizard Full +15", Valor = 6000, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,37), SlotLWeapon = GET_ITEM(5,103), SlotRWeapon = GET_ITEM(6,020), SlotHelm = GET_ITEM(07,122), SlotArmor = GET_ITEM(08,122), SlotGloves = GET_ITEM(10,122), SlotPants = GET_ITEM(09,122), SlotBoots = GET_ITEM(11,122), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[22] = { Name = "Awakening Knight Full +15", Valor = 6000, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,36), SlotLWeapon = GET_ITEM(0,103), SlotRWeapon = GET_ITEM(0,103), SlotHelm = GET_ITEM(07,123), SlotArmor = GET_ITEM(08,123), SlotGloves = GET_ITEM(10,123), SlotPants = GET_ITEM(09,123), SlotBoots = GET_ITEM(11,123), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[23] = { Name = "Awakening Fairy Full +15", Valor = 6000, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,38), SlotLWeapon = -1, SlotRWeapon = GET_ITEM(4,113), SlotHelm = GET_ITEM(07,124), SlotArmor = GET_ITEM(08,124), SlotGloves = GET_ITEM(10,124), SlotPants = GET_ITEM(09,124), SlotBoots = GET_ITEM(11,124), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[24] = { Name = "Awakening Magic Full +15", Valor = 6000, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,39), SlotLWeapon = GET_ITEM(0,103), SlotRWeapon = GET_ITEM(0,103), SlotHelm = -1, SlotArmor = GET_ITEM(08,125), SlotGloves = GET_ITEM(10,125), SlotPants = GET_ITEM(09,125), SlotBoots = GET_ITEM(11,125), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[25] = { Name = "Awakening Lord Full +15", Valor = 6000, SlotPet = GET_ITEM(13,04), SlotWing = GET_ITEM(12,40), SlotLWeapon = GET_ITEM(2,103), SlotRWeapon = GET_ITEM(6,21), SlotHelm = GET_ITEM(07,126), SlotArmor = GET_ITEM(08,126), SlotGloves = GET_ITEM(10,126), SlotPants = GET_ITEM(09,126), SlotBoots = GET_ITEM(11,126), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[26] = { Name = "Awakening Fighter Full +15", Valor = 6000, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,50), SlotLWeapon = GET_ITEM(0,113), SlotRWeapon = GET_ITEM(0,113), SlotHelm = GET_ITEM(07,127), SlotArmor = GET_ITEM(08,127), SlotGloves = -1, SlotPants = GET_ITEM(09,127), SlotBoots = GET_ITEM(11,127), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[27] = { Name = "Awakening Sum Full +15", Valor = 6000, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,43), SlotLWeapon = GET_ITEM(5,103), SlotRWeapon = GET_ITEM(0,002), SlotHelm = GET_ITEM(07,128), SlotArmor = GET_ITEM(08,128), SlotGloves = GET_ITEM(10,128), SlotPants = GET_ITEM(09,128), SlotBoots = GET_ITEM(11,128), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[28] = { Name = "Frost Wizard Full +15", Valor = 6450, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,37), SlotLWeapon = GET_ITEM(5,104), SlotRWeapon = GET_ITEM(6,020), SlotHelm = GET_ITEM(07,129), SlotArmor = GET_ITEM(08,129), SlotGloves = GET_ITEM(10,129), SlotPants = GET_ITEM(09,129), SlotBoots = GET_ITEM(11,129), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[29] = { Name = "Frost Knight Full +15", Valor = 6450, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,36), SlotLWeapon = GET_ITEM(0,104), SlotRWeapon = GET_ITEM(0,104), SlotHelm = GET_ITEM(07,130), SlotArmor = GET_ITEM(08,130), SlotGloves = GET_ITEM(10,130), SlotPants = GET_ITEM(09,130), SlotBoots = GET_ITEM(11,130), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[30] = { Name = "Frost Fairy Full +15", Valor = 6450, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,38), SlotLWeapon = -1, SlotRWeapon = GET_ITEM(4,114), SlotHelm = GET_ITEM(07,131), SlotArmor = GET_ITEM(08,131), SlotGloves = GET_ITEM(10,131), SlotPants = GET_ITEM(09,131), SlotBoots = GET_ITEM(11,131), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[31] = { Name = "Frost Magic Full +15", Valor = 6450, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,39), SlotLWeapon = GET_ITEM(0,104), SlotRWeapon = GET_ITEM(0,104), SlotHelm = -1, SlotArmor = GET_ITEM(08,132), SlotGloves = GET_ITEM(10,132), SlotPants = GET_ITEM(09,132), SlotBoots = GET_ITEM(11,132), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[32] = { Name = "Frost Lord Full +15", Valor = 6450, SlotPet = GET_ITEM(13,04), SlotWing = GET_ITEM(12,40), SlotLWeapon = GET_ITEM(2,104), SlotRWeapon = GET_ITEM(6,21), SlotHelm = GET_ITEM(07,133), SlotArmor = GET_ITEM(08,133), SlotGloves = GET_ITEM(10,133), SlotPants = GET_ITEM(09,133), SlotBoots = GET_ITEM(11,133), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[33] = { Name = "Frost Fighter Full +15", Valor = 6450, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,50), SlotLWeapon = GET_ITEM(0,114), SlotRWeapon = GET_ITEM(0,114), SlotHelm = GET_ITEM(07,134), SlotArmor = GET_ITEM(08,134), SlotGloves = -1, SlotPants = GET_ITEM(09,134), SlotBoots = GET_ITEM(11,134), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[34] = { Name = "Frost Sum Full +15", Valor = 6450, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,43), SlotLWeapon = GET_ITEM(5,104), SlotRWeapon = GET_ITEM(0,002), SlotHelm = GET_ITEM(07,135), SlotArmor = GET_ITEM(08,135), SlotGloves = GET_ITEM(10,135), SlotPants = GET_ITEM(09,135), SlotBoots = GET_ITEM(11,135), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[35] = { Name = "SilverHeart Wizard Full +15", Valor = 6900, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,37), SlotLWeapon = GET_ITEM(5,105), SlotRWeapon = GET_ITEM(6,020), SlotHelm = GET_ITEM(07,136), SlotArmor = GET_ITEM(08,136), SlotGloves = GET_ITEM(10,136), SlotPants = GET_ITEM(09,136), SlotBoots = GET_ITEM(11,136), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[36] = { Name = "SilverHeart Knight Full +15", Valor = 6900, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,36), SlotLWeapon = GET_ITEM(0,105), SlotRWeapon = GET_ITEM(0,105), SlotHelm = GET_ITEM(07,137), SlotArmor = GET_ITEM(08,137), SlotGloves = GET_ITEM(10,137), SlotPants = GET_ITEM(09,137), SlotBoots = GET_ITEM(11,137), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[37] = { Name = "SilverHeart Fairy Full +15", Valor = 6900, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,38), SlotLWeapon = -1, SlotRWeapon = GET_ITEM(4,105), SlotHelm = GET_ITEM(07,138), SlotArmor = GET_ITEM(08,138), SlotGloves = GET_ITEM(10,138), SlotPants = GET_ITEM(09,138), SlotBoots = GET_ITEM(11,138), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[38] = { Name = "SilverHeart Magic Full +15", Valor = 6900, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,39), SlotLWeapon = GET_ITEM(0,105), SlotRWeapon = GET_ITEM(0,105), SlotHelm = -1, SlotArmor = GET_ITEM(08,139), SlotGloves = GET_ITEM(10,139), SlotPants = GET_ITEM(09,139), SlotBoots = GET_ITEM(11,139), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[39] = { Name = "SilverHeart Lord Full +15", Valor = 6900, SlotPet = GET_ITEM(13,04), SlotWing = GET_ITEM(12,40), SlotLWeapon = GET_ITEM(2,105), SlotRWeapon = GET_ITEM(6,21), SlotHelm = GET_ITEM(07,140), SlotArmor = GET_ITEM(08,140), SlotGloves = GET_ITEM(10,140), SlotPants = GET_ITEM(09,140), SlotBoots = GET_ITEM(11,140), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[40] = { Name = "SilverHeart Fighter Full +15", Valor = 6900, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,50), SlotLWeapon = GET_ITEM(0,115), SlotRWeapon = GET_ITEM(0,115), SlotHelm = GET_ITEM(07,141), SlotArmor = GET_ITEM(08,141), SlotGloves = -1, SlotPants = GET_ITEM(09,141), SlotBoots = GET_ITEM(11,141), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[41] = { Name = "SilverHeart Sum Full +15", Valor = 6900, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,43), SlotLWeapon = GET_ITEM(5,105), SlotRWeapon = GET_ITEM(0,002), SlotHelm = GET_ITEM(07,142), SlotArmor = GET_ITEM(08,142), SlotGloves = GET_ITEM(10,142), SlotPants = GET_ITEM(09,142), SlotBoots = GET_ITEM(11,142), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[42] = { Name = "[HOT] Manticore Wizard Full +15", Valor = 7500, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,37), SlotLWeapon = GET_ITEM(5,106), SlotRWeapon = GET_ITEM(6,020), SlotHelm = GET_ITEM(07,143), SlotArmor = GET_ITEM(08,143), SlotGloves = GET_ITEM(10,143), SlotPants = GET_ITEM(09,143), SlotBoots = GET_ITEM(11,143), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[43] = { Name = "[HOT] Manticore Knight Full +15", Valor = 7500, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,36), SlotLWeapon = GET_ITEM(0,106), SlotRWeapon = GET_ITEM(0,106), SlotHelm = GET_ITEM(07,144), SlotArmor = GET_ITEM(08,144), SlotGloves = GET_ITEM(10,144), SlotPants = GET_ITEM(09,144), SlotBoots = GET_ITEM(11,144), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[44] = { Name = "[HOT] Manticore Fairy Full +15", Valor = 7500, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,38), SlotLWeapon = -1, SlotRWeapon = GET_ITEM(4,106), SlotHelm = GET_ITEM(07,145), SlotArmor = GET_ITEM(08,145), SlotGloves = GET_ITEM(10,145), SlotPants = GET_ITEM(09,145), SlotBoots = GET_ITEM(11,145), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[45] = { Name = "[HOT] Manticore Magic Full +15", Valor = 7500, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,39), SlotLWeapon = GET_ITEM(0,106), SlotRWeapon = GET_ITEM(0,106), SlotHelm = -1, SlotArmor = GET_ITEM(08,146), SlotGloves = GET_ITEM(10,146), SlotPants = GET_ITEM(09,146), SlotBoots = GET_ITEM(11,146), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[46] = { Name = "[HOT] Manticore Lord Full +15", Valor = 7500, SlotPet = GET_ITEM(13,04), SlotWing = GET_ITEM(12,40), SlotLWeapon = GET_ITEM(2,106), SlotRWeapon = GET_ITEM(6,21), SlotHelm = GET_ITEM(07,147), SlotArmor = GET_ITEM(08,147), SlotGloves = GET_ITEM(10,147), SlotPants = GET_ITEM(09,147), SlotBoots = GET_ITEM(11,147), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[47] = { Name = "[HOT] Manticore Fighter Full +15", Valor = 7500, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,50), SlotLWeapon = GET_ITEM(0,116), SlotRWeapon = GET_ITEM(0,116), SlotHelm = GET_ITEM(07,148), SlotArmor = GET_ITEM(08,148), SlotGloves = -1, SlotPants = GET_ITEM(09,148), SlotBoots = GET_ITEM(11,148), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
[48] = { Name = "[HOT] Manticore Sum Full +15", Valor = 7500, SlotPet = GET_ITEM(13,64), SlotWing = GET_ITEM(12,43), SlotLWeapon = GET_ITEM(5,106), SlotRWeapon = GET_ITEM(0,002), SlotHelm = GET_ITEM(07,149), SlotArmor = GET_ITEM(08,149), SlotGloves = GET_ITEM(10,149), SlotPants = GET_ITEM(09,149), SlotBoots = GET_ITEM(11,149), SlotPendant = GET_ITEM(13,25), SlotRing = GET_ITEM(13,08) },
}
}
local CONFIG = require('Scripts\\PackageShop\\Config')
local pShop = {}
pShop.Open = false
pShop.Page = 0
BridgeFunctionAttach('OnCommandManager', 'CommandOpen')
function CommandOpen(aIndex, Arguments)
local Command = CommandGetArgString(Arguments, 0)
if not (Command == CONFIG.Command) then
return 0
end
if CONFIG.Active == false then return 0 end
pShop.Open = true
local packetInformation = string.format("%s-%s", CONFIG.PacketName, CONFIG.Packet)
CreatePacket(packetInformation, CONFIG.Packet)
SetBytePacket(packetInformation, #CONFIG.Packages)
SendPacket(packetInformation,aIndex)
ClearPacket(packetInformation)
pShop.SendVisual(aIndex, 0)
LogColor(3, string.format('%s - %s - %s', pShop.Open, Command, packetInformation))
end
function pShop.Protocol(aIndex, Packet, PacketName)
if Packet == CONFIG.Packet
then
if string.format('%s-%s-%s', CONFIG.Packet,CONFIG.PacketBuy, GetObjectName(aIndex)) == PacketName
then
pShop.Page = GetBytePacket(PacketName, -1)
ClearPacket(PacketName)
pShop.CommandBuy(aIndex, pShop.Page)
return
end
if string.format('%s-%s-%s', CONFIG.PacketSlide, CONFIG.Packet, GetObjectName(aIndex)) == PacketName
then
pShop.Page = GetBytePacket(PacketName, -1)
ClearPacket(PacketName)
pShop.SendVisual(aIndex, pShop.Page)
LogColor(1, string.format('Page: %s', pShop.Page))
return
end
if string.format('%s-%s', PacketNameClose, GetObjectName(aIndex)) == PacketName
then
pShop.Open = false
ClearPacket(PacketName)
return
end
return
end
end
function pShop.SendVisual(aIndex, slide)
local packetIdentification = string.format('%s-%s', CONFIG.PacketSlide, GetObjectName(aIndex))
CreatePacket(packetIdentification, CONFIG.Packet)
SetBytePacket(packetIdentification, string.len(CONFIG.Packages[slide].Name))
SetCharPacketLength(packetIdentification, CONFIG.Packages[slide].Name, string.len(CONFIG.Packages[slide].Name))
SetDwordPacket(packetIdentification, CONFIG.Packages[slide].Valor)
SetDwordPacket(packetIdentification, CONFIG.Packages[slide].SlotPet)
SetDwordPacket(packetIdentification, CONFIG.Packages[slide].SlotWing)
SetDwordPacket(packetIdentification, CONFIG.Packages[slide].SlotLWeapon)
SetDwordPacket(packetIdentification, CONFIG.Packages[slide].SlotRWeapon)
SetDwordPacket(packetIdentification, CONFIG.Packages[slide].SlotHelm)
SetDwordPacket(packetIdentification, CONFIG.Packages[slide].SlotArmor)
SetDwordPacket(packetIdentification, CONFIG.Packages[slide].SlotGloves)
SetDwordPacket(packetIdentification, CONFIG.Packages[slide].SlotPants)
SetDwordPacket(packetIdentification, CONFIG.Packages[slide].SlotBoots)
SetDwordPacket(packetIdentification, CONFIG.Packages[slide].SlotPendant)
SetDwordPacket(packetIdentification, CONFIG.Packages[slide].SlotRing)
LogColor(1, CONFIG.Packages[slide].SlotPet)
LogColor(1, CONFIG.Packages[slide].SlotWing)
LogColor(1, CONFIG.Packages[slide].SlotLWeapon)
LogColor(1, CONFIG.Packages[slide].SlotRWeapon)
LogColor(1, CONFIG.Packages[slide].SlotHelm)
LogColor(1, CONFIG.Packages[slide].SlotArmor)
LogColor(1, CONFIG.Packages[slide].SlotGloves)
LogColor(1, CONFIG.Packages[slide].SlotPants)
LogColor(1, CONFIG.Packages[slide].SlotBoots)
LogColor(1, CONFIG.Packages[slide].SlotPendant)
LogColor(1, CONFIG.Packages[slide].SlotRing)
SendPacket(packetIdentification, aIndex)
ClearPacket(packetIdentification)
end
function pShop.CommandBuy(aIndex, page)
local GetCoin = DataBase.GetValue('CashShopData', 'WCoinC', 'AccountID', GetObjectAccount(aIndex))
local id = CONFIG.Packages[page]
if GetCoin < CONFIG.Packages[page].Valor then
MessageSend(aIndex,1,0,string.format('[PACKAGE] %s - Você precisa ter %d FCoins', GetObjectAccount(aIndex), CONFIG.Packages[page].Valor))
LogColor(3, string.format('[PACKAGE] %s - Você precisa ter %d FCoins', GetObjectAccount(aIndex), CONFIG.Packages[page].Valor))
return 0
end
ObjectSubCoin(aIndex,id.Valor,0,0)
LogColor(3, string.format('[PACKAGE] %s - Comprou o Pacote %s', GetObjectAccount(aIndex), page))
MessageSend(aIndex,1,0,string.format('[PACKAGE] %s - Comprou o Pacote %s', GetObjectAccount(aIndex), page))
MessageSend(aIndex,1,0,string.format('[PACKAGE] Retire seu pacote no Npc Rescue Item', GetObjectAccount(aIndex), page))
if CONFIG.Debug ~= true
then
DataBase.Package('ww_package', GetObjectAccount(aIndex), page, CONFIG.Packages[page].Valor)
end
iJoH = 0
if id.SlotArmor ~= -1 then
DataBase.InsertNpcRescueItem(GetObjectAccount(aIndex), id.SlotArmor, 15, 1, 1, 7, 63, 0, iJoH, 0, 255, 255, 255, 255, 255, 0, 0)
end
if id.SlotBoots ~= -1 then
DataBase.InsertNpcRescueItem(GetObjectAccount(aIndex), id.SlotBoots, 15, 1, 1, 7, 63, 0, iJoH, 0, 255, 255, 255, 255, 255, 0, 0)
end
if id.SlotGloves ~= -1 then
DataBase.InsertNpcRescueItem(GetObjectAccount(aIndex), id.SlotGloves, 15, 1, 1, 7, 63, 0, iJoH, 0, 255, 255, 255, 255, 255, 0, 0)
end
if id.SlotHelm ~= -1 then
DataBase.InsertNpcRescueItem(GetObjectAccount(aIndex), id.SlotHelm, 15, 1, 1, 7, 63, 0, iJoH, 0, 255, 255, 255, 255, 255, 0, 0)
end
if id.SlotPants ~= -1 then
DataBase.InsertNpcRescueItem(GetObjectAccount(aIndex), id.SlotPants, 15, 1, 1, 7, 63, 0, iJoH, 0, 255, 255, 255, 255, 255, 0, 0)
end
if id.SlotPendant ~= -1 then
DataBase.InsertNpcRescueItem(GetObjectAccount(aIndex), id.SlotPendant, 15, 1, 1, 7, 63, 0, iJoH, 0, 255, 255, 255, 255, 255, 0, 0)
end
if id.SlotPet ~= -1 then
DataBase.InsertNpcRescueItem(GetObjectAccount(aIndex), id.SlotPet, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255, 255, 0, 0)
end
if id.SlotRing ~= -1 then
for i = 1, 2 do
DataBase.InsertNpcRescueItem(GetObjectAccount(aIndex), id.SlotRing, 15, 1, 1, 7, 63, 0, iJoH, 0, 255, 255, 255, 255, 255, 0, 0)
end
end
if id.SlotRWeapon ~= -1 then
if id.SlotRWeapon >= GET_ITEM(5,0) and id.SlotRWeapon <= GET_ITEM(5,511) then
DataBase.InsertNpcRescueItem(GetObjectAccount(aIndex), id.SlotRWeapon, 15, 1, 1, 7, 63, 0, 0, 0, 255, 255, 255, 255, 255, 0, 0)
elseif id.SlotRWeapon >= GET_ITEM(6,0) then
DataBase.InsertNpcRescueItem(GetObjectAccount(aIndex), id.SlotRWeapon, 15, 1, 1, 7, 63, 0, 0, 0, 255, 255, 255, 255, 255, 0, 0)
else -- SlotRWeapon <= 2559
DataBase.InsertNpcRescueItem(GetObjectAccount(aIndex), id.SlotRWeapon, 15, 1, 1, 7, 63, 0, 0, 0, 255, 255, 255, 255, 255, 0, 0)
end
end
if id.SlotLWeapon ~= -1 then
if id.SlotLWeapon >= GET_ITEM(5,0) and id.SlotLWeapon <= GET_ITEM(5,511) then
DataBase.InsertNpcRescueItem(GetObjectAccount(aIndex), id.SlotLWeapon, 15, 1, 1, 7, 63, 0, 0, 0, 255, 255, 255, 255, 255, 0, 0)
elseif id.SlotLWeapon >= GET_ITEM(6,0) then
DataBase.InsertNpcRescueItem(GetObjectAccount(aIndex), id.SlotLWeapon, 15, 1, 1, 7, 63, 0, 0, 0, 255, 255, 255, 255, 255, 0, 0)
else -- SlotRWeapon <= 2559
DataBase.InsertNpcRescueItem(GetObjectAccount(aIndex), id.SlotLWeapon, 15, 1, 1, 7, 63, 0, 0, 0, 255, 255, 255, 255, 255, 0, 0)
end
end
if id.SlotWing ~= -1 then
DataBase.InsertNpcRescueItem(GetObjectAccount(aIndex), id.SlotWing, 15, 1, 1, 7, 15, 0, 0, 0, 255, 255, 255, 255, 255, 0, 0)
end
end
function pShop.Init()
if CONFIG.Active == false
then
return
end
ProtocolFunctions.GameServerProtocol(pShop.Protocol)
end
pShop.Init()
local CONFIG = require("Scripts\\PackageShop\\Config")
BridgeFunctionAttach('MainInterfaceProcThread','PackageLoad')
BridgeFunctionAttach('KeyboardEvent','PackageKey')
BridgeFunctionAttach('UpdateMouseEvent','PackageClick')
local pShop = {}
pShop.Open = 0
local posx = 0
local posy = 0
local size = 250
local page = 0
local maxpage = 0
local Width = 0
local ItemName = ""
local Valor = 0
local meusaldo = 0
local SlotPet = 0
local SlotWing = 0
local SlotLWeapon = 0
local SlotRWeapon = 0
local SlotHelm = 0
local SlotArmor = 0
local SlotGloves = 0
local SlotPants = 0
local SlotBoots = 0
local SlotPendant = 0
local SlotRing = 0
function PackageLoad()
if pShop.Open == 0
then
--UnlockPlayerWalk()
return
end
if GetWideX() ~= 640 then
Width = 840
else
Width = 640
end
LockPlayerWalk()
SetLockInterfaces()
SetBlend(1)
glColor4f(1.0, 1.0, 1.0, 1.0)
posx = (Width/2) - (size/2)
posy = 50
Console(0, string.format('posx: %s / Width: %s',posx, Width))
pShop.RenderBack(posx, posy)
pShop.RenderBtn(posx, posy)
pShop.Text(posx+2, posy)
pShop.RenderSlot(posx, posy)
DisableAlphaBlend()
end
function PackageKey(KeyNumber)
if KeyNumber == Keys.Escape
then
local packetInformation = string.format('%s-%s', PacketNameClose, UserGetName())
CreatePacket(packetInformation, CONFIG.Packet)
SendPacket(packetInformation, aIndex)
ClearPacket(packetInformation)
pShop.Open = 0
page = 0
UnlockPlayerWalk()
return
end
end
function PackageClick()
if pShop.Open == 0 then return end
posx = (Width/2) - (size/2)
posy = 50
local nx = posx+40
local ny = posy
-- Left Page
if CheckPressedKey(Keys.LButton) == 1
then
if pShop.CheckMouseIn(nx-30, ny+158, 17, 18) == 1
then
page = page - 1
if page < 0 then page = 0 end
Console(3, string.format("Pagina: %s", page))
local packetInformation = string.format("%s-%s-%s", CONFIG.PacketSlide, CONFIG.Packet, UserGetName())
CreatePacket(packetInformation, CONFIG.Packet)
SetBytePacket(packetInformation, page)
SendPacket(packetInformation,aIndex)
ClearPacket(packetInformation)
end
end
-- Right Page
if CheckPressedKey(Keys.LButton) == 1
then
if pShop.CheckMouseIn(nx+size-65, ny+158, 17, 18) == 1
then
page = page + 1
if page > maxpage then page = maxpage end
Console(2, string.format("Pagina: %s", page))
local packetInformation = string.format("%s-%s-%s", CONFIG.PacketSlide, CONFIG.Packet, UserGetName())
CreatePacket(packetInformation, CONFIG.Packet)
SetBytePacket(packetInformation, page)
SendPacket(packetInformation,aIndex)
ClearPacket(packetInformation)
end
end
--Button Buy
if CheckPressedKey(Keys.LButton) == 1
then
if pShop.CheckMouseIn(posx + (size/4) , ny+300, size/2, 25) == 1
then
local packetInformation = string.format("%s-%s-%s", CONFIG.Packet, CONFIG.PacketBuy, UserGetName())
CreatePacket(packetInformation, CONFIG.Packet)
SetBytePacket(packetInformation, page)
SendPacket(packetInformation,aIndex)
ClearPacket(packetInformation)
Console(2, string.format("Buy: Click Page %s [%s]", page, packetInformation))
end
end
end
function pShop.Text(x, y)
SetFontType(1)
--Title Shop Shadow
SetTextBg(0, 0, 0, 0)
SetTextColor(0, 0, 0, 255)
RenderText(x+1, y+11, "PACKAGE SHOP", size, 3)
--Title Shop Font White
SetTextBg(0, 0, 0, 0)
SetTextColor(255, 255, 255, 255)
RenderText(x, y+10, "PACKAGE SHOP", size, 3)
--Title Package
SetTextBg(0, 0, 0, 0)
SetTextColor(255, 255, 255, 255)
RenderText(x, y+35, string.format('(%s) - %s',page, ItemName), size, 3)
--Title Package
SetTextBg(0, 0, 0, 0)
SetTextColor(255, 255, 255, 255)
RenderText(x, y+282, string.format("Preço: %s FCoin's", Valor), size, 3)
--Button Buy Package
SetTextBg(0, 0, 0, 0)
SetTextColor(255, 255, 255, 255)
RenderText(x, y+305, "Comprar", size, 3)
--Saldo Package
SetTextBg(0, 0, 255, 255)
SetTextColor(255, 0, 255, 255)
RenderText(x, y+330, string.format("Seu saldo: %s FCoin's", GetCoin1()), size, 3)
end
function pShop.RenderBack(x, y)
-- BACKGROUND
glColor4f(0.0, 0.0, 0.0, 0.80);
DrawBar(x, y, size, size+100)
-- RED TITLE
glColor4f(1.0, 0.0, 0.0, 1.0);
DrawBar(x+5, y+5, size-10, 25)
-- BLUE SUB TITLE
glColor4f(0.0, 0.0, 1.0, 1.0);
DrawBar(x+5, y+35, size-10, 10)
-- GREEN PRICE
glColor4f(0.0, 0.5, 0.0, 1.0);
DrawBar(x+5, y+282, size-10, 10)
-- BROWN BUY
local btnBuy = pShop.CheckMouseIn(x + (size/4),y+300,size/2,25)
if btnBuy == 1 then
glColor4f(1.0, 0.0, 0.0, 1.0);
else
glColor4f(0.55, 0.0, 0.0, 1.0);
end
DrawBar(x + (size/4) , y+300, size/2, 25)
EndDrawBar()
end
function pShop.RenderSlot(x,y)
local nx = x+40
local ny = y
if SlotPet ~= -1 then
RenderImage(31360, nx+10, ny+50, 46, 46) -- Pet
CreateItem(nx+10, ny+50, 46, 46, SlotPet, 0, 0, 0, 0)
end
if SlotHelm ~= -1 then
RenderImage(31359, nx+66, ny+50, 46, 46) -- Helm
CreateItem(nx+66, ny+50, 46, 46, SlotHelm, 13, 0, 63, 0)
end
if SlotWing ~= -1 then
RenderImage(31361, nx+122, ny+50, 66, 46) -- Wing
CreateItem(nx+122, ny+50, 66, 46, SlotWing, 13, 0, 63, 0)
end
if SlotLWeapon ~= -1 then
RenderImage(31362, nx+10, ny+106, 46, 66) -- Weapon L
CreateItem(nx+10, ny+106, 46, 66, SlotLWeapon, 13, 0, 63, 0)
end
if SlotArmor ~= -1 then
RenderImage(31364, nx+66, ny+106, 46, 66) -- Armor
CreateItem(nx+66, ny+106, 46, 66, SlotArmor, 13, 0, 63, 0)
end
if SlotRWeapon ~= -1 then
RenderImage(31363, nx+122, ny+106, 46, 66) -- Weapon R
CreateItem(nx+122, ny+106, 46, 66, SlotRWeapon, 13, 0, 63, 0)
end
if SlotGloves ~= -1 then
RenderImage(31365, nx+10, ny+182, 46, 46) -- Gloves
CreateItem(nx+10, ny+182, 46, 46, SlotGloves, 13, 0, 63, 0)
end
if SlotPants ~= -1 then
RenderImage(31366, nx+66, ny+182, 46, 46) -- Pants
CreateItem(nx+66, ny+182, 46, 46, SlotPants, 13, 0, 63, 0)
end
if SlotBoots ~= -1 then
RenderImage(31358, nx+122, ny+182, 46, 46) -- Boots
CreateItem(nx+122, ny+182, 46, 46, SlotBoots, 13, 0, 63, 0)
end
if SlotPendant ~= -1 then
RenderImage(31368, nx+10, ny+238, 28, 28) -- Pendant
CreateItem(nx+10, ny+238, 28, 28, SlotPendant, 13, 0, 63, 0)
end
if SlotRing ~= -1 then
RenderImage(31367, nx+66, ny+238, 28, 28) -- Ring
CreateItem(nx+66, ny+238, 28, 28, SlotRing, 13, 0, 63, 0)
RenderImage(31367, nx+122, ny+238, 28, 28) -- Ring
CreateItem(nx+122, ny+238, 28, 28, SlotRing, 13, 0, 63, 0)
end
pShop.RenderDesc(nx+10, ny+50, 46, 46, SlotPet, 0, 0, 0) -- Slot Pet
pShop.RenderDesc(nx+66, ny+50, 46, 46, SlotHelm, 15, 0, 63) -- Slot helm
pShop.RenderDesc(nx+122, ny+50, 66, 46, SlotWing, 15, 0, 15) -- Slot Wing
if SlotLWeapon >= GET_ITEM(5,0) and SlotLWeapon <= GET_ITEM(5,511) then
pShop.RenderDesc(nx+10, ny+106, 46, 66, SlotLWeapon, 15, 0, 63) -- Slot Left Weapon
elseif SlotLWeapon >= GET_ITEM(6,0) then
pShop.RenderDesc(nx+10, ny+106, 46, 66, SlotLWeapon, 15, 0, 63) -- Slot Left Weapon
else
pShop.RenderDesc(nx+10, ny+106, 46, 66, SlotLWeapon, 15, 0, 63) -- Slot Left Weapon
end
pShop.RenderDesc(nx+66, ny+106, 46, 66, SlotArmor, 15, 0, 63) -- Slot Armor
if SlotRWeapon >= GET_ITEM(5,0) and SlotRWeapon <= GET_ITEM(5,511) then
pShop.RenderDesc(nx+122, ny+106, 46, 66, SlotRWeapon, 15, 0, 63) -- Slot Right Weapon
elseif SlotRWeapon >= GET_ITEM(6,0) then
pShop.RenderDesc(nx+122, ny+106, 46, 66, SlotRWeapon, 15, 0, 63) -- Slot Right Weapon
else
pShop.RenderDesc(nx+122, ny+106, 46, 66, SlotRWeapon, 15, 0, 63) -- Slot Right Weapon
end
pShop.RenderDesc(nx+10, ny+182, 46, 46, SlotGloves, 15, 0, 63) -- Slot Gloves
pShop.RenderDesc(nx+66, ny+182, 46, 46, SlotPants, 15, 0, 63) -- Slot Pants
pShop.RenderDesc(nx+122, ny+182, 46, 46, SlotBoots, 15, 0, 63) -- Slot Boots
pShop.RenderDesc(nx+10, ny+238, 28, 28, SlotPendant, 15, 0, 63) -- SLot Pendant
pShop.RenderDesc(nx+66, ny+238, 28, 28, SlotRing, 15, 0, 63) -- Slot Ring L
pShop.RenderDesc(nx+122, ny+238, 28, 28, SlotRing, 15, 0, 63) -- Slot Ring R
end
function pShop.RenderBtn(x,y)
local nx = x+40
local ny = y
RenderImage(31658, nx-30, ny+158, 17, 18) -- Btn L
RenderImage(31659, nx+size-65, ny+158, 17, 18) -- Btn R
end
function pShop.CheckMouseIn(x, y, w, h)
if MousePosX() >= x and MousePosX() <= x+w and MousePosY() >= y and MousePosY() <= y+h then
return 1
else
return 0
end
end
function pShop.RenderDesc(x, y, w, h, itemid, level, joh, exc)
if MousePosX() >= x and MousePosX() <= x+w and MousePosY() >= y and MousePosY() <= y+h then
return ShowDescriptionComplete(MousePosX()-50, MousePosY(), itemid, level, -1, 1, 1, 7, exc, 0, joh, 0, 255, 255, 255, 255, 255)
end
end
function pShop.init()
ProtocolFunctions.ClientProtocol(pShop.Protocol)
end
function pShop.Protocol(Packet, PacketName)
if Packet == CONFIG.Packet
then
if string.format('%s-%s', CONFIG.PacketName, CONFIG.Packet) == PacketName
then
pShop.Open = 1
maxpage = GetBytePacket(PacketName, -1)
ClearPacket(PacketName)
return
end
if string.format('%s-%s', CONFIG.PacketSlide, UserGetName()) == PacketName
then
local TitleLen = GetBytePacket(PacketName, -1)
ItemName = GetCharPacketLength(PacketName, -1, TitleLen)
Valor = GetDwordPacket(PacketName, -1)
SlotPet = GetDwordPacket(PacketName, -1)
SlotWing = GetDwordPacket(PacketName, -1)
SlotLWeapon = GetDwordPacket(PacketName, -1)
SlotRWeapon = GetDwordPacket(PacketName, -1)
SlotHelm = GetDwordPacket(PacketName, -1)
SlotArmor = GetDwordPacket(PacketName, -1)
SlotGloves = GetDwordPacket(PacketName, -1)
SlotPants = GetDwordPacket(PacketName, -1)
SlotBoots = GetDwordPacket(PacketName, -1)
SlotPendant = GetDwordPacket(PacketName, -1)
SlotRing = GetDwordPacket(PacketName, -1)
ClearPacket(PacketName)
return
end
end
end
pShop.init()