function onUse(player, item, fromPosition, target, toPosition, isHotkey) local REWARDS = { --[[ INSTRUÇÕES SOBRE COMO PREENCHER A TABELA DE RECOMPENSAS. Storage = Storage que checará se você pode clicar no baú e receber o premio. Check = [01] = Value da Storage que você precisa ter para acessar o baú. [02] = Value da Storage que você ganha para não poder acessar o baú novamente. Type = Tipo de premio que você ira receber: EQUIP | MISSION ItemInfo = [01] = ID do item que voce ira receber. [02] = Slot do inventario da qual aquele item pertence. [03] = Raridade do Item. [04] = Nivel de estrelas do item. SpecialStorage = [01] = Usado em Quest especiais onde se ganha uma storage diferente da storage do bau. [02] = Qual storage nova voce ira ganhar. [03] = Value dessa storage. SpecialMSG = [01] = Se o jogador ira receber uma mensagem especial ao abrir o bau. [02] = Mensagem. Tutorial = [01] = Se ao abrir o Bau, vai mostrar algum tutorial para o jogador. O numero indica qual tutorial sera mostrado. (0 indica que nao) [02] = Quanto tempo, em segundos, o tutorial demorara para aparecer ao player. SendCancel = [01] = Se precisa enviar alguma informação para o cliente [02] = Mensagem ]]-- [10000] = {Storage = _QUESTLOG[01].UID_01, Check = {01, 002}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {4015, 4, 0, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {true, "@NewbieStart 02"}}; [10001] = {Storage = _QUESTLOG[05].UID_01, Check = {02, 003}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {2000, 2, 0, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10002] = {Storage = _QUESTLOG[10].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "CHEST", ItemInfo = {1002, 1, 0, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10003] = {Storage = _QUESTLOG[11].UID_01, Check = {02, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {8000, 8, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10004] = {Storage = _QUESTLOG[12].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {4005, 4, 0, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10005] = {Storage = _QUESTLOG[13].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "CHEST", ItemInfo = {5014, 5, 2, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10006] = {Storage = _QUESTLOG[14].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "CHEST", ItemInfo = {6000, 6, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10007] = {Storage = _QUESTLOG[15].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "CHEST", ItemInfo = {3009, 3, 0, 0, 20, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10008] = {Storage = _QUESTLOG[16].UID_01, Check = {02, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {4032, 4, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10009] = {Storage = _QUESTLOG[17].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "CHEST", ItemInfo = {3002, 3, 1, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10010] = {Storage = _QUESTLOG[18].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "CHEST", ItemInfo = {7002, 7, 0, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10011] = {Storage = _QUESTLOG[19].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "CHEST", ItemInfo = {4016, 4, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10012] = {Storage = _QUESTLOG[20].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "CHEST", ItemInfo = {3043, 3, 1, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10013] = {Storage = _QUESTLOG[21].UID_01, Check = {01, 100}, GoldCoin = 00015000, Type = "COINS", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10014] = {Storage = _QUESTLOG[22].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "CHEST", ItemInfo = {3169, 3, 1, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10015] = {Storage = _QUESTLOG[23].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "CHEST", ItemInfo = {8001, 8, 2, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10016] = {Storage = _QUESTLOG[24].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "CHEST", ItemInfo = {5008, 5, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10017] = {Storage = _QUESTLOG[25].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "CHEST", ItemInfo = {3072, 3, 0, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10018] = {Storage = _QUESTLOG[33].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "PASS", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {true, "@PassChest 01 01"}}; [10019] = {Storage = _QUESTLOG[34].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "PASS", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {true, "@PassChest 01 02"}}; [10020] = {Storage = _QUESTLOG[35].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "PASS", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {true, "@PassChest 01 03"}}; [10021] = {Storage = _QUESTLOG[36].UID_01, Check = {01, 100}, GoldCoin = 00050000, Type = "COINS", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10022] = {Storage = _QUESTLOG[37].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "PASS", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {true, "@PassChest 01 04"}}; [10023] = {Storage = _QUESTLOG[38].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {5023, 5, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10024] = {Storage = _QUESTLOG[38].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {5023, 5, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10025] = {Storage = _QUESTLOG[39].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {6010, 6, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10026] = {Storage = _QUESTLOG[40].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {3110, 3, 0, 0, 35, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10027] = {Storage = _QUESTLOG[41].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {2021, 2, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10028] = {Storage = 11044, Check = {01, 02}, GoldCoin = 00100000, Type = "COINS", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10030] = {Storage = _QUESTLOG[42].UID_01, Check = {03, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {1000, 1, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10031] = {Storage = _QUESTLOG[42].Value[01], Check = {06, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {6016, 6, 0, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10032] = {Storage = _QUESTLOG[43].UID_01, Check = {01, 100}, GoldCoin = 00100000, Type = "COINS", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10034] = {Storage = 10848, Check = {-1, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {5031, 5, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10035] = {Storage = 10848, Check = {-1, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {5032, 5, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10036] = {Storage = _QUESTLOG[44].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {2003, 2, 2, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10037] = {Storage = _QUESTLOG[45].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {1009, 1, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10038] = {Storage = _QUESTLOG[46].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {5006, 5, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10039] = {Storage = _QUESTLOG[47].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {6009, 6, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10041] = {Storage = _QUESTLOG[48].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {4000, 4, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10042] = {Storage = _QUESTLOG[49].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {9010, 9, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10043] = {Storage = _QUESTLOG[49].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {5026, 5, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10044] = {Storage = _QUESTLOG[50].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {2006, 2, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10045] = {Storage = _QUESTLOG[51].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {1006, 1, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10046] = {Storage = _QUESTLOG[52].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "PASS", ItemInfo = {9006, 9, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {true, "@PassChest 01 05"}}; [10047] = {Storage = _QUESTLOG[53].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "PASS", ItemInfo = {7005, 7, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {true, "@PassChest 01 06"}}; [10048] = {Storage = _QUESTLOG[54].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "PASS", ItemInfo = {4022, 4, 2, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {true, "@PassChest 01 07"}}; [10049] = {Storage = _QUESTLOG[55].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "PASS", ItemInfo = {5038, 5, 3, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {true, "@PassChest 01 08"}}; [10050] = {Storage = _QUESTLOG[56].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {4001, 4, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10051] = {Storage = _QUESTLOG[57].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {3020, 3, 0, 0, 35, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10052] = {Storage = _QUESTLOG[58].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {4003, 4, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10053] = {Storage = _QUESTLOG[59].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {3109, 3, 0, 0, 30, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10054] = {Storage = _QUESTLOG[60].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {4006, 4, 0, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10055] = {Storage = _QUESTLOG[61].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {4007, 4, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10056] = {Storage = _QUESTLOG[62].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {3006, 3, 0, 0, 35, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10057] = {Storage = _QUESTLOG[63].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {4018, 4, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10058] = {Storage = _QUESTLOG[63].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {3201, 3, 0, 0, 40, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10059] = {Storage = _QUESTLOG[64].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {4031, 4, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10060] = {Storage = _QUESTLOG[65].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "PASS", ItemInfo = {3055, 3, 0, 0, 30, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {true, "@PassChest 01 09"}}; [10061] = {Storage = _QUESTLOG[66].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {3175, 3, 0, 0, 35, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10062] = {Storage = _QUESTLOG[67].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {4003, 4, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10063] = {Storage = _QUESTLOG[67].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {4008, 4, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10064] = {Storage = _QUESTLOG[67].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {4022, 4, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10065] = {Storage = _QUESTLOG[67].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {4037, 4, 1, 0, 1, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10066] = {Storage = _QUESTLOG[68].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {3124, 3, 0, 0, 40, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10067] = {Storage = _QUESTLOG[69].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "EQUIP", ItemInfo = {3013, 3, 0, 0, 40, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10068] = {Storage = _QUESTLOG[81].UID_01, Check = {02, 003}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10069] = {Storage = _QUESTLOG[90].UID_01, Check = {02, 003}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10070] = {Storage = _QUESTLOG[99].UID_01, Check = {02, 003}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10071] = {Storage = _QUESTLOG[103].UID_01, Check = {02, 003}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10072] = {Storage = _QUESTLOG[108].UID_01, Check = {02, 003}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10073] = {Storage = _QUESTLOG[108].UID_01, Check = {03, 004}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10074] = {Storage = _QUESTLOG[108].UID_01, Check = {04, 005}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10075] = {Storage = _QUESTLOG[108].UID_01, Check = {05, 006}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10076] = {Storage = _QUESTLOG[112].UID_01, Check = {02, 003}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10077] = {Storage = _QUESTLOG[112].UID_01, Check = {03, 004}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10078] = {Storage = _QUESTLOG[112].UID_01, Check = {04, 005}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10079] = {Storage = _QUESTLOG[112].UID_01, Check = {05, 006}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10080] = {Storage = _QUESTLOG[116].UID_01, Check = {02, 003}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10081] = {Storage = _QUESTLOG[116].UID_01, Check = {-1, 100}, GoldCoin = 00000000, Type = "PASS", ItemInfo = {0000, 0, 0, 0, 0, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {true, "@PassChest 01 01"}}; -- QUEST PREMIUM [10082] = {Storage = _QUESTLOG[120].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "CHEST", ItemInfo = {3185, 3, 0, 0, 20, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, ""}, Tutorial = {0, 0}, SendCancel = {false, ""}}; [10083] = {Storage = _QUESTLOG[121].UID_01, Check = {05, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {7000, 7, 1, 0, 01, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- MEMÓRIAS [10084] = {Storage = _QUESTLOG[122].UID_01, Check = {02, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {7008, 7, 1, 0, 01, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- TEMPLO DAS CORES [10085] = {Storage = _QUESTLOG[123].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3020, 3, 0, 0, 30, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- ESCAMAS DOS ELDER [10086] = {Storage = _QUESTLOG[124].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3282, 3, 0, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- PARASITAS [10087] = {Storage = _QUESTLOG[125].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {0000, 0, 0, 0, 00, false}, SpecialStorage = {true, _QUESTLOG[126].UID_01, 01}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- NINHO DO CROCODILO - PARTE I [10088] = {Storage = _QUESTLOG[126].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {6003, 6, 2, 0, 00, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- NINHO DO CROCODILO - PARTE II [10089] = {Storage = _QUESTLOG[127].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3287, 3, 0, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- ASAS DE PEDRA [10090] = {Storage = _QUESTLOG[128].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3005, 3, 0, 0, 20, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- CALDAS DO DRAGÃO [10091] = {Storage = _QUESTLOG[129].UID_01, Check = {01, 002}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3077, 3, 0, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- RETALHOS [10092] = {Storage = _QUESTLOG[129].UID_01, Check = {02, 003}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3078, 3, 0, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- RETALHOS [10093] = {Storage = _QUESTLOG[129].UID_01, Check = {03, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3183, 3, 0, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- RETALHOS [10094] = {Storage = _QUESTLOG[130].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3243, 3, 0, 0, 20, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- BESTA ENJAULADA [10095] = {Storage = _QUESTLOG[131].UID_01, Check = {04, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {2015, 2, 3, 0, 01, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- ENIGMA DA SERPENTE [10096] = {Storage = _QUESTLOG[132].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3269, 3, 0, 0, 30, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- PRESAS DE SANGUE [10097] = {Storage = _QUESTLOG[133].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3008, 3, 0, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- PATAS DE MEL [10098] = {Storage = _QUESTLOG[134].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3011, 3, 0, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- DEDO DURO [10099] = {Storage = _QUESTLOG[135].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3279, 3, 0, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- PRESAS DA MEIA NOITE [10100] = {Storage = _QUESTLOG[136].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3196, 3, 0, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- MENTE MORTA [10226] = {Storage = _QUESTLOG[137].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3074, 3, 0, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- ESPÓLIOS DE CAÇA - I [10227] = {Storage = _QUESTLOG[138].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3054, 3, 0, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- ESPÓLIOS DE CAÇA - II [10228] = {Storage = _QUESTLOG[139].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3274, 3, 0, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- ESPÓLIOS DE CAÇA - III [10229] = {Storage = _QUESTLOG[140].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3288, 3, 0, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- ESPÓLIOS DE CAÇA - IV [10230] = {Storage = _QUESTLOG[141].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3037, 3, 0, 0, 35, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- ESSÊNCIAS DE UM PESADELO [10231] = {Storage = _QUESTLOG[142].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3286, 3, 0, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- ESPÓLIOS DE CAÇA - V [10232] = {Storage = _QUESTLOG[143].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3285, 3, 0, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- ESPÓLIOS DE CAÇA - VI [10233] = {Storage = _QUESTLOG[144].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3234, 3, 0, 0, 30, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- DEVORADOR DE PEDRAS [10234] = {Storage = _QUESTLOG[145].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3291, 3, 0, 0, 35, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- TESOURO ESPECTRAL [10235] = {Storage = _QUESTLOG[146].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3289, 3, 0, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- ESPÓLIOS DE CAÇA - VII [10236] = {Storage = _QUESTLOG[147].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {3242, 3, 0, 0, 25, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- ESPÓLIOS DE CAÇA - VIII [10237] = {Storage = _QUESTLOG[202].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "NONE", ItemInfo = {0000, 0, 0, 0, 00, false}, SpecialStorage = {true, _SYSTEM.POINTS_ATR[07], 01}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado.\n1x Ponto de Atributo."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- CAMINHO TORTUOSO [10238] = {Storage = _QUESTLOG[203].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {9000, 9, 1, 0, 01, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- INFESTAÇÃO [10239] = {Storage = _QUESTLOG[204].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {11003, 3, 0, 0, 01, true}, SpecialStorage = {false, 0, 0}, SpecialMSG = {true, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- FURIA DA SORTE [10240] = {Storage = _QUESTLOG[205].UID_01, Check = {01, 100}, GoldCoin = 00000000, Type = "QUEST", ItemInfo = {5025, 5, 2, 0, 01, false}, SpecialStorage = {false, 0, 0}, SpecialMSG = {false, "Su Diario de Missiones fue Actualizado."}, Tutorial = {0, 0}, SendCancel = {false, ""}}; -- SALÃO ROYAL } if REWARDS[item.uid] then local X = REWARDS[item.uid] if X.Type == "PASS" then if player:getStorageValue(X.Storage) == X.Check[01] then if X.SendCancel[01] then player:sendCancelMessage(X.SendCancel[02]) else player:getPosition():sendMagicEffect(03) return true end else player:getPosition():sendMagicEffect(03) return true end elseif X.Type == "COINS" then if player:getStorageValue(X.Storage) < X.Check[02] then local GoldQnt = X.GoldCoin PlayerGoldCoins(player, 02, GoldQnt) if _DEBUG_MODE then print("[ACTION - QUEST BAUL] " ..player:getName().. " - Abrindo Quest Baul [" ..item.uid.. "] | REC GOLD: (" ..GoldQnt.. ")") end player:getPosition():sendMagicEffect(14) player:setStorageValue(X.Storage, X.Check[02]) else player:getPosition():sendMagicEffect(03) return true end elseif X.Type == "NONE" then if player:getStorageValue(X.Storage) == X.Check[01] then if X.SpecialStorage[01] then player:setStorageValue(X.SpecialStorage[02], (player:getStorageValue(X.SpecialStorage[02]) + X.SpecialStorage[03])) end player:setStorageValue(X.Storage, X.Check[02]) if X.SpecialMSG[01] then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, X.SpecialMSG[02]) end if X.Tutorial[01] > 0 then addEvent(function() player:sendCancelMessage("@TutorShow " ..X.Tutorial[01]) end, X.Tutorial[02] * 1000) end if X.SendCancel[01] then player:sendCancelMessage(X.SendCancel[02]) end else player:getPosition():sendMagicEffect(03) return false end elseif X.Type == "CHEST" then if player:getStorageValue(X.Storage) < X.Check[02] then -------------------------------------------------- local itemid = X.ItemInfo[01] local slot = X.ItemInfo[02] local ext = 0 local rare = X.ItemInfo[03] local star = X.ItemInfo[04] local qnt = X.ItemInfo[05] --------------------------------------------------- if doBackpack(player, 00, slot, ext, 01) then if slot == 3 then if _DEBUG_MODE then print("[ACTION - QUEST BAUL] " ..player:getName().. " - Abrindo Quest Baul [" ..item.uid.. "] | REC CHEST: (" .._ITEMS[itemid].NAME.. " x" ..qnt.. ")") end doBackpack(player, 03, slot, ext, 01, itemid) -- Procurar rare = _ITEMS[itemid].RARE if doBackpack(player, 01, slot, ext, 0, itemid, rare, star, qnt) then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Usted recibio un articulo [ " .._ITEMS[itemid].NAME.. ", x" ..qnt.." ].") player:getPosition():sendMagicEffect(14) end else if _DEBUG_MODE then print("[ACTION - QUEST BAUL] " ..player:getName().. " - Abrindo Quest Baul [" ..item.uid.. "] | REC CHEST: (" .._ITEMS[itemid].NAME.. ")") end if doBackpack(player, 01, slot, ext, 0, itemid, rare, star, qnt) then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Usted recibio un articulo [ " .._ITEMS[itemid].NAME.. " ].") player:getPosition():sendMagicEffect(14) end end player:getPosition():sendMagicEffect(14) if X.SpecialStorage[01] then player:setStorageValue(X.SpecialStorage[02], X.SpecialStorage[03]) else player:setStorageValue(X.Storage, X.Check[02]) end if X.SpecialMSG[01] then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, X.SpecialMSG[02]) end if X.Tutorial[01] > 0 then addEvent(function() player:sendCancelMessage("@TutorShow " ..X.Tutorial[01]) end, X.Tutorial[02] * 1000) end if X.SendCancel[01] then player:sendCancelMessage(X.SendCancel[02]) end else player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Su Bolsa esta llena.") player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Su Bolsa esta llena.") player:getPosition():sendMagicEffect(03) return false end else player:getPosition():sendMagicEffect(03) return true end elseif X.Type == "QUEST" then if player:getStorageValue(X.Storage) == X.Check[01] then if X.ItemInfo[01] > 00 then -------------------------------------------------- local itemid = X.ItemInfo[01] local slot = X.ItemInfo[02] local ext = 0 local rare = X.ItemInfo[03] local star = X.ItemInfo[04] local qnt = X.ItemInfo[05] local uni = X.ItemInfo[06] --------------------------------------------------- if doBackpack(player, 00, slot, ext, 01) then if slot == 3 then if _DEBUG_MODE then print("[ACTION - QUEST BAUL] " ..player:getName().. " - Abrindo Quest Baul [" ..item.uid.. "] | REC QUEST: (" .._ITEMS[itemid].NAME.. " x" ..qnt.. ")") end if uni then rare = _ITEMS[itemid].RARE if doBackpack(player, 01, slot, ext, 0, itemid, rare, star, qnt, uni) then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Usted recibio un articulo [ " .._ITEMS[itemid].NAME.. ", x" ..qnt.." ].") player:getPosition():sendMagicEffect(14) end else doBackpack(player, 03, slot, ext, 01, itemid) -- Procurar rare = _ITEMS[itemid].RARE if doBackpack(player, 01, slot, ext, 0, itemid, rare, star, qnt) then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Usted recibio un articulo [ " .._ITEMS[itemid].NAME.. ", x" ..qnt.." ].") player:getPosition():sendMagicEffect(14) end end else if _DEBUG_MODE then print("[ACTION - QUEST BAUL] " ..player:getName().. " - Abrindo Quest Baul [" ..item.uid.. "] | REC QUEST: (" .._ITEMS[itemid].NAME.. ")") end if doBackpack(player, 01, slot, ext, 0, itemid, rare, star, qnt) then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Usted recibio un articulo [ " .._ITEMS[itemid].NAME.. " ].") player:getPosition():sendMagicEffect(14) end end player:getPosition():sendMagicEffect(14) if X.SpecialStorage[01] then player:setStorageValue(X.SpecialStorage[02], X.SpecialStorage[03]) else player:setStorageValue(X.Storage, X.Check[02]) end if X.SpecialMSG[01] then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, X.SpecialMSG[02]) end if X.Tutorial[01] > 0 then addEvent(function() player:sendCancelMessage("@TutorShow " ..X.Tutorial[01]) end, X.Tutorial[02] * 1000) end if X.SendCancel[01] then player:sendCancelMessage(X.SendCancel[02]) end else player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Su Bolsa esta llena.") player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Su Bolsa esta llena.") player:getPosition():sendMagicEffect(03) return false end end player:setStorageValue(X.Storage, X.Check[02]) if X.SpecialStorage[01] then player:setStorageValue(X.SpecialStorage[02], X.SpecialStorage[03]) end if X.SpecialMSG[01] then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, X.SpecialMSG[02]) end if X.Tutorial[01] > 0 then addEvent(function() player:sendCancelMessage("@TutorShow " ..X.Tutorial[01]) end, X.Tutorial[02] * 1000) end if X.SendCancel[01] then player:sendCancelMessage(X.SendCancel[02]) end player:getPosition():sendMagicEffect(14) else player:getPosition():sendMagicEffect(03) return true end else if player:getStorageValue(X.Storage) == X.Check[01] then if X.Type == "EQUIP" then -------------------------------------------------- local itemid = X.ItemInfo[01] local slot = X.ItemInfo[02] local ext = 0 local rare = X.ItemInfo[03] local star = X.ItemInfo[04] local qnt = X.ItemInfo[05] --------------------------------------------------- if doBackpack(player, 00, slot, ext, 01) then if slot == 3 then if _DEBUG_MODE then print("[ACTION - QUEST BAUL] " ..player:getName().. " - Abrindo Quest Baul [" ..item.uid.. "] | REC EQUIP: (" .._ITEMS[itemid].NAME.. " x" ..qnt.. ")") end doBackpack(player, 03, slot, ext, 01, itemid) -- Procurar rare = _ITEMS[itemid].RARE if doBackpack(player, 01, slot, ext, 0, itemid, rare, star, qnt) then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Usted recibio un articulo [ " .._ITEMS[itemid].NAME.. ", x" ..qnt.." ].") player:getPosition():sendMagicEffect(14) end else if _DEBUG_MODE then print("[ACTION - QUEST BAUL] " ..player:getName().. " - Abrindo Quest Baul [" ..item.uid.. "] | REC EQUIP: (" .._ITEMS[itemid].NAME.. ")") end if doBackpack(player, 01, slot, ext, 0, itemid, rare, star, qnt) then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Usted recibio un articulo [ " .._ITEMS[itemid].NAME.. " ].") player:getPosition():sendMagicEffect(14) end end player:getPosition():sendMagicEffect(14) if X.SpecialStorage[01] then player:setStorageValue(X.SpecialStorage[02], X.SpecialStorage[03]) else player:setStorageValue(X.Storage, X.Check[02]) end if X.SpecialMSG[01] then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, X.SpecialMSG[02]) end if X.Tutorial[01] > 0 then addEvent(function() player:sendCancelMessage("@TutorShow " ..X.Tutorial[01]) end, X.Tutorial[02] * 1000) end if X.SendCancel[01] then player:sendCancelMessage(X.SendCancel[02]) end else player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Su Bolsa esta llena.") player:getPosition():sendMagicEffect(03) return true end end else player:getPosition():sendMagicEffect(03) return true end end doBackpack(player, 12) player:sendCancelMessage("@RemoveMarkMap") player:sendCancelMessage("@LoadQuestMap") player:sendCancelMessage("@LoadQuestWindows") end return true end