JavierR82149142 0 Postado Janeiro 28, 2014 Share Postado Janeiro 28, 2014 (editado) Alguém me pode ajudar com npc nurse joy ñao pode cura pokemones. Editado Janeiro 28, 2014 por PCrystal Link para o comentário Compartilhar em outros sites More sharing options...
zerefshirou 112 Postado Janeiro 28, 2014 Share Postado Janeiro 28, 2014 Não deve estar configurado direito seu icon, poste o script heal.lua da nurse... Link para o comentário Compartilhar em outros sites More sharing options...
JavierR82149142 0 Postado Janeiro 28, 2014 Autor Share Postado Janeiro 28, 2014 local focus = 0local talk_start = 0local target = 0local following = falselocal attacking = falselocal talkState = {}local states = {'1', '2', '3', '4', '5', '6'}local store = {1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 1019, 1020, 1021, 1022, 1023, 1024, 1025, 1026, 1027, 1028, 1029, 1030, 1031, 1032, 1033, 1034, 1035, 1036, 1037, 1038, 1039, 1040, 1041, 1042, 1043, 1044, 1045, 1046, 1047, 1048, 1049, 1050, 1051, 1052, 1053, 1054, 1055, 1056, 1057, 1058, 1059, 1060, 1061, 1062, 1063, 1064, 1065, 1066, 1067, 1068, 1069, 1071, 1072, 1073, 1074, 1075, 1076, 1077, 1078, 1079, 1080, 1081, 1082, 1083, 1084, 1085, 1086, 1087, 1088, 1089, 1090, 1091, 1092, 1093, 1094, 1095, 1096, 1097, 1098, 1099, 1100, 1101, 1102, 1103, 1104, 1105, 1106, 1107, 1108, 1109, 1110, 1111, 1112, 1113, 1114, 1115, 1116, 1117, 1118, 1119, 1120, 1121, 1122, 1123, 1124, 1125, 1126, 1127, 1128, 1129, 1130, 1131, 1132, 1133, 1134, 1135, 1136, 1137, 1138, 1139, 1140, 1141, 1142, 1143, 1144, 1145, 1146, 1147, 1148, 1149, 1150, 1151}local unlock = {}local pokeballs = {'2222', '2224'}local ultraballs = {'2220', '2227'}local greatballs = {'2651', '2657'}local superballs = {'2653', '2658'}local saffariballs = {'2655', '2659'}local loveballs = {'11623', '11621'}local dark = {'11620', '11618'}local golden = {'11626','11624'}local frase = {'11629', '11627'}function onThingMove(creature, thing, oldpos, oldstackpos)endfunction onCreatureAppear(creature)endfunction onCreatureDisappear(cid, pos)if focus == cid thenselfSay('Good bye sir!')focus = 0talk_start = 0endendfunction onCreatureTurn(creature)endfunction msgcontains(txt, str)return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)'))endfunction onCreatureSay(cid, type, msg)local msg = string.lower(msg)local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cidif((msgcontains(msg, 'hi') or msgcontains(msg, 'heal') or msgcontains(msg, 'help')) and (getDistanceToCreature(cid) <= 3)) thenif #getCreatureSummons(cid) == 1 thenselfSay('Sorry, puch your pokémon for pokeball.')return trueendif getPlayerStorageValue(cid, 230) >= 1 thenreturn selfSay('Wait a moment.')endsetPlayerStorageValue(cid, 230, 1)addEvent(setPlayerStorageValue, 2000, cid, 230, 0)doCreatureAddHealth(cid, getCreatureMaxHealth(cid)-getCreatureHealth(cid))doSendMagicEffect(getThingPos(cid), 132)if isInArray(pokeballs, getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid) thenlocal feet = getPlayerSlotItem(cid, CONST_SLOT_FEET)local maxh = tonumber(getItemAttribute(feet.uid, "poke"):match("/(.+)]"))doItemSetAttribute(feet.uid, "poke", getItemAttribute(feet.uid, "poke"):sub(1, findLetter(getItemAttribute(feet.uid, "poke"), "[")) .. maxh .. getItemAttribute(feet.uid, "poke"):sub(findLetter(getItemAttribute(feet.uid, "poke"), "/")))doTransformItem(feet.uid, 2222)doCureAllStatus(feet.uid)endif isInArray(ultraballs, getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid) thenlocal feet = getPlayerSlotItem(cid, CONST_SLOT_FEET)local maxh = tonumber(getItemAttribute(feet.uid, "poke"):match("/(.+)]"))doItemSetAttribute(feet.uid, "poke", getItemAttribute(feet.uid, "poke"):sub(1, findLetter(getItemAttribute(feet.uid, "poke"), "[")) .. maxh .. getItemAttribute(feet.uid, "poke"):sub(findLetter(getItemAttribute(feet.uid, "poke"), "/")))doTransformItem(feet.uid, 2220)doCureAllStatus(feet.uid)endif isInArray(greatballs, getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid) thenlocal feet = getPlayerSlotItem(cid, CONST_SLOT_FEET)local maxh = tonumber(getItemAttribute(feet.uid, "poke"):match("/(.+)]"))doItemSetAttribute(feet.uid, "poke", getItemAttribute(feet.uid, "poke"):sub(1, findLetter(getItemAttribute(feet.uid, "poke"), "[")) .. maxh .. getItemAttribute(feet.uid, "poke"):sub(findLetter(getItemAttribute(feet.uid, "poke"), "/")))doTransformItem(feet.uid, 2651)doCureAllStatus(feet.uid)endif isInArray(superballs, getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid) thenlocal feet = getPlayerSlotItem(cid, CONST_SLOT_FEET)local maxh = tonumber(getItemAttribute(feet.uid, "poke"):match("/(.+)]"))doItemSetAttribute(feet.uid, "poke", getItemAttribute(feet.uid, "poke"):sub(1, findLetter(getItemAttribute(feet.uid, "poke"), "[")) .. maxh .. getItemAttribute(feet.uid, "poke"):sub(findLetter(getItemAttribute(feet.uid, "poke"), "/")))doTransformItem(feet.uid, 2653)doCureAllStatus(feet.uid)endif isInArray(saffariballs, getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid) thenlocal feet = getPlayerSlotItem(cid, CONST_SLOT_FEET)local maxh = tonumber(getItemAttribute(feet.uid, "poke"):match("/(.+)]"))doItemSetAttribute(feet.uid, "poke", getItemAttribute(feet.uid, "poke"):sub(1, findLetter(getItemAttribute(feet.uid, "poke"), "[")) .. maxh .. getItemAttribute(feet.uid, "poke"):sub(findLetter(getItemAttribute(feet.uid, "poke"), "/")))doTransformItem(feet.uid, 2655)doCureAllStatus(feet.uid)endif isInArray(loveballs, getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid) thenlocal feet = getPlayerSlotItem(cid, CONST_SLOT_FEET)local maxh = tonumber(getItemAttribute(feet.uid, "poke"):match("/(.+)]"))doItemSetAttribute(feet.uid, "poke", getItemAttribute(feet.uid, "poke"):sub(1, findLetter(getItemAttribute(feet.uid, "poke"), "[")) .. maxh .. getItemAttribute(feet.uid, "poke"):sub(findLetter(getItemAttribute(feet.uid, "poke"), "/")))doTransformItem(feet.uid, 11621)doCureAllStatus(feet.uid)endif isInArray(dark, getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid) thenlocal feet = getPlayerSlotItem(cid, CONST_SLOT_FEET)local maxh = tonumber(getItemAttribute(feet.uid, "poke"):match("/(.+)]"))doItemSetAttribute(feet.uid, "poke", getItemAttribute(feet.uid, "poke"):sub(1, findLetter(getItemAttribute(feet.uid, "poke"), "[")) .. maxh .. getItemAttribute(feet.uid, "poke"):sub(findLetter(getItemAttribute(feet.uid, "poke"), "/")))doTransformItem(feet.uid, 11618)doCureAllStatus(feet.uid)endif isInArray(golden, getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid) thenlocal feet = getPlayerSlotItem(cid, CONST_SLOT_FEET)local maxh = tonumber(getItemAttribute(feet.uid, "poke"):match("/(.+)]"))doItemSetAttribute(feet.uid, "poke", getItemAttribute(feet.uid, "poke"):sub(1, findLetter(getItemAttribute(feet.uid, "poke"), "[")) .. maxh .. getItemAttribute(feet.uid, "poke"):sub(findLetter(getItemAttribute(feet.uid, "poke"), "/")))doTransformItem(feet.uid, 11624)doCureAllStatus(feet.uid)endif isInArray(frash, getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid) thenlocal feet = getPlayerSlotItem(cid, CONST_SLOT_FEET)local maxh = tonumber(getItemAttribute(feet.uid, "poke"):match("/(.+)]"))doItemSetAttribute(feet.uid, "poke", getItemAttribute(feet.uid, "poke"):sub(1, findLetter(getItemAttribute(feet.uid, "poke"), "[")) .. maxh .. getItemAttribute(feet.uid, "poke"):sub(findLetter(getItemAttribute(feet.uid, "poke"), "/")))doTransformItem(feet.uid, 11627)doCureAllStatus(feet.uid)endlocal bp = getPlayerSlotItem(cid, CONST_SLOT_BACKPACK)local items = getItemsInContainerById(bp.uid, 2224)for _, uid in pairs(items) dolocal maxh = tonumber(getItemAttribute(uid, "poke"):match("/(.+)]"))doItemSetAttribute(uid, "poke", getItemAttribute(uid, "poke"):sub(1, findLetter(getItemAttribute(uid, "poke"), "[")) .. maxh .. getItemAttribute(uid, "poke"):sub(findLetter(getItemAttribute(uid, "poke"), "/")))doTransformItem(uid, 2222)doCureAllStatus(uid)endlocal items = getItemsInContainerById(bp.uid, 2227)for _, uid in pairs(items) dolocal maxh = tonumber(getItemAttribute(uid, "poke"):match("/(.+)]"))doItemSetAttribute(uid, "poke", getItemAttribute(uid, "poke"):sub(1, findLetter(getItemAttribute(uid, "poke"), "[")) .. maxh .. getItemAttribute(uid, "poke"):sub(findLetter(getItemAttribute(uid, "poke"), "/")))doTransformItem(uid, 2220)doCureAllStatus(uid)endlocal items = getItemsInContainerById(bp.uid, 2657)for _, uid in pairs(items) dolocal maxh = tonumber(getItemAttribute(uid, "poke"):match("/(.+)]"))doItemSetAttribute(uid, "poke", getItemAttribute(uid, "poke"):sub(1, findLetter(getItemAttribute(uid, "poke"), "[")) .. maxh .. getItemAttribute(uid, "poke"):sub(findLetter(getItemAttribute(uid, "poke"), "/")))doTransformItem(uid, 2651)doCureAllStatus(uid)endlocal items = getItemsInContainerById(bp.uid, 2658)for _, uid in pairs(items) dolocal maxh = tonumber(getItemAttribute(uid, "poke"):match("/(.+)]"))doItemSetAttribute(uid, "poke", getItemAttribute(uid, "poke"):sub(1, findLetter(getItemAttribute(uid, "poke"), "[")) .. maxh .. getItemAttribute(uid, "poke"):sub(findLetter(getItemAttribute(uid, "poke"), "/")))doTransformItem(uid, 2653)doCureAllStatus(uid)endlocal items = getItemsInContainerById(bp.uid, 2659)for _, uid in pairs(items) dolocal maxh = tonumber(getItemAttribute(uid, "poke"):match("/(.+)]"))doItemSetAttribute(uid, "poke", getItemAttribute(uid, "poke"):sub(1, findLetter(getItemAttribute(uid, "poke"), "[")) .. maxh .. getItemAttribute(uid, "poke"):sub(findLetter(getItemAttribute(uid, "poke"), "/")))doTransformItem(uid, 2655)doCureAllStatus(uid)endlocal items = getItemsInContainerById(bp.uid, 2222)for _, uid in pairs(items) dolocal maxh = tonumber(getItemAttribute(uid, "poke"):match("/(.+)]"))doCureAllStatus(uid)doItemSetAttribute(uid, "poke", getItemAttribute(uid, "poke"):sub(1, findLetter(getItemAttribute(uid, "poke"), "[")) .. maxh .. getItemAttribute(uid, "poke"):sub(findLetter(getItemAttribute(uid, "poke"), "/")))endlocal items = getItemsInContainerById(bp.uid, 2220)for _, uid in pairs(items) dolocal maxh = tonumber(getItemAttribute(uid, "poke"):match("/(.+)]"))doCureAllStatus(uid)doItemSetAttribute(uid, "poke", getItemAttribute(uid, "poke"):sub(1, findLetter(getItemAttribute(uid, "poke"), "[")) .. maxh .. getItemAttribute(uid, "poke"):sub(findLetter(getItemAttribute(uid, "poke"), "/")))endlocal items = getItemsInContainerById(bp.uid, 2651)for _, uid in pairs(items) dolocal maxh = tonumber(getItemAttribute(uid, "poke"):match("/(.+)]"))doCureAllStatus(uid)doItemSetAttribute(uid, "poke", getItemAttribute(uid, "poke"):sub(1, findLetter(getItemAttribute(uid, "poke"), "[")) .. maxh .. getItemAttribute(uid, "poke"):sub(findLetter(getItemAttribute(uid, "poke"), "/")))endlocal items = getItemsInContainerById(bp.uid, 2653)for _, uid in pairs(items) dolocal maxh = tonumber(getItemAttribute(uid, "poke"):match("/(.+)]"))doCureAllStatus(uid)doItemSetAttribute(uid, "poke", getItemAttribute(uid, "poke"):sub(1, findLetter(getItemAttribute(uid, "poke"), "[")) .. maxh .. getItemAttribute(uid, "poke"):sub(findLetter(getItemAttribute(uid, "poke"), "/")))end------------ Novas ballslocal items = getItemsInContainerById(bp.uid, 11623) -- Lovefor _, uid in pairs(items) dolocal maxh = tonumber(getItemAttribute(uid, "poke"):match("/(.+)]"))doCureAllStatus(uid)doItemSetAttribute(uid, "poke", getItemAttribute(uid, "poke"):sub(1, findLetter(getItemAttribute(uid, "poke"), "[")) .. maxh .. getItemAttribute(uid, "poke"):sub(findLetter(getItemAttribute(uid, "poke"), "/")))endlocal items = getItemsInContainerById(bp.uid, 11621) -- Lovefor _, uid in pairs(items) dolocal maxh = tonumber(getItemAttribute(uid, "poke"):match("/(.+)]"))doCureAllStatus(uid)doItemSetAttribute(uid, "poke", getItemAttribute(uid, "poke"):sub(1, findLetter(getItemAttribute(uid, "poke"), "[")) .. maxh .. getItemAttribute(uid, "poke"):sub(findLetter(getItemAttribute(uid, "poke"), "/")))endlocal items = getItemsInContainerById(bp.uid, 11620) -- darkfor _, uid in pairs(items) dolocal maxh = tonumber(getItemAttribute(uid, "poke"):match("/(.+)]"))doCureAllStatus(uid)doItemSetAttribute(uid, "poke", getItemAttribute(uid, "poke"):sub(1, findLetter(getItemAttribute(uid, "poke"), "[")) .. maxh .. getItemAttribute(uid, "poke"):sub(findLetter(getItemAttribute(uid, "poke"), "/")))endlocal items = getItemsInContainerById(bp.uid, 11618)-- darkfor _, uid in pairs(items) dolocal maxh = tonumber(getItemAttribute(uid, "poke"):match("/(.+)]"))doCureAllStatus(uid)doItemSetAttribute(uid, "poke", getItemAttribute(uid, "poke"):sub(1, findLetter(getItemAttribute(uid, "poke"), "[")) .. maxh .. getItemAttribute(uid, "poke"):sub(findLetter(getItemAttribute(uid, "poke"), "/")))endlocal items = getItemsInContainerById(bp.uid, 11626)for _, uid in pairs(items) dolocal maxh = tonumber(getItemAttribute(uid, "poke"):match("/(.+)]"))doCureAllStatus(uid)doItemSetAttribute(uid, "poke", getItemAttribute(uid, "poke"):sub(1, findLetter(getItemAttribute(uid, "poke"), "[")) .. maxh .. getItemAttribute(uid, "poke"):sub(findLetter(getItemAttribute(uid, "poke"), "/")))endlocal items = getItemsInContainerById(bp.uid, 11624)for _, uid in pairs(items) dolocal maxh = tonumber(getItemAttribute(uid, "poke"):match("/(.+)]"))doCureAllStatus(uid)doItemSetAttribute(uid, "poke", getItemAttribute(uid, "poke"):sub(1, findLetter(getItemAttribute(uid, "poke"), "[")) .. maxh .. getItemAttribute(uid, "poke"):sub(findLetter(getItemAttribute(uid, "poke"), "/")))endlocal items = getItemsInContainerById(bp.uid, 11629)for _, uid in pairs(items) dolocal maxh = tonumber(getItemAttribute(uid, "poke"):match("/(.+)]"))doCureAllStatus(uid)doItemSetAttribute(uid, "poke", getItemAttribute(uid, "poke"):sub(1, findLetter(getItemAttribute(uid, "poke"), "[")) .. maxh .. getItemAttribute(uid, "poke"):sub(findLetter(getItemAttribute(uid, "poke"), "/")))endlocal items = getItemsInContainerById(bp.uid, 11627)for _, uid in pairs(items) dolocal maxh = tonumber(getItemAttribute(uid, "poke"):match("/(.+)]"))doCureAllStatus(uid)doItemSetAttribute(uid, "poke", getItemAttribute(uid, "poke"):sub(1, findLetter(getItemAttribute(uid, "poke"), "[")) .. maxh .. getItemAttribute(uid, "poke"):sub(findLetter(getItemAttribute(uid, "poke"), "/")))endselfSay('There you go! You and your pokemons are healthy again.')endendfunction onThink()if focus ~= 0 thena, b, c = selfGetPosition()if c ~= getThingPos(focus).z thenfocus = 0endendif focus ~= 0 thenif getDistanceToCreature(focus) > 3 thenfocus = 0endendreturn trueend Link para o comentário Compartilhar em outros sites More sharing options...
Pokexcrystal 0 Postado Janeiro 29, 2014 Share Postado Janeiro 29, 2014 @ZerefShirou so PCrystal aqui esta script. local focus = 0local talk_start = 0local target = 0local following = falselocal attacking = falselocal talkState = {}local states = {'1', '2', '3', '4', '5', '6'}local store = {1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 1019, 1020, 1021, 1022, 1023, 1024, 1025, 1026, 1027, 1028, 1029, 1030, 1031, 1032, 1033, 1034, 1035, 1036, 1037, 1038, 1039, 1040, 1041, 1042, 1043, 1044, 1045, 1046, 1047, 1048, 1049, 1050, 1051, 1052, 1053, 1054, 1055, 1056, 1057, 1058, 1059, 1060, 1061, 1062, 1063, 1064, 1065, 1066, 1067, 1068, 1069, 1071, 1072, 1073, 1074, 1075, 1076, 1077, 1078, 1079, 1080, 1081, 1082, 1083, 1084, 1085, 1086, 1087, 1088, 1089, 1090, 1091, 1092, 1093, 1094, 1095, 1096, 1097, 1098, 1099, 1100, 1101, 1102, 1103, 1104, 1105, 1106, 1107, 1108, 1109, 1110, 1111, 1112, 1113, 1114, 1115, 1116, 1117, 1118, 1119, 1120, 1121, 1122, 1123, 1124, 1125, 1126, 1127, 1128, 1129, 1130, 1131, 1132, 1133, 1134, 1135, 1136, 1137, 1138, 1139, 1140, 1141, 1142, 1143, 1144, 1145, 1146, 1147, 1148, 1149, 1150, 1151}local unlock = {}local pokeballs = {'2222', '2224'}local ultraballs = {'2220', '2227'}local greatballs = {'2651', '2657'}local superballs = {'2653', '2658'}local saffariballs = {'2655', '2659'}local loveballs = {'11623', '11621'}local dark = {'11620', '11618'}local golden = {'11626','11624'}local frase = {'11629', '11627'}function onThingMove(creature, thing, oldpos, oldstackpos)endfunction onCreatureAppear(creature)endfunction onCreatureDisappear(cid, pos)if focus == cid thenselfSay('Good bye sir!')focus = 0talk_start = 0endendfunction onCreatureTurn(creature)endfunction msgcontains(txt, str)return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)'))endfunction onCreatureSay(cid, type, msg)local msg = string.lower(msg)local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cidif((msgcontains(msg, 'hi') or msgcontains(msg, 'heal') or msgcontains(msg, 'help')) and (getDistanceToCreature(cid) <= 3)) thenif #getCreatureSummons(cid) == 1 thenselfSay('Sorry, puch your pokémon for pokeball.')return trueendif getPlayerStorageValue(cid, 230) >= 1 thenreturn selfSay('Wait a moment.')endsetPlayerStorageValue(cid, 230, 1)addEvent(setPlayerStorageValue, 2000, cid, 230, 0)doCreatureAddHealth(cid, getCreatureMaxHealth(cid)-getCreatureHealth(cid))doSendMagicEffect(getThingPos(cid), 132)if isInArray(pokeballs, getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid) thenlocal feet = getPlayerSlotItem(cid, CONST_SLOT_FEET)local maxh = tonumber(getItemAttribute(feet.uid, "poke"):match("/(.+)]"))doItemSetAttribute(feet.uid, "poke", getItemAttribute(feet.uid, "poke"):sub(1, findLetter(getItemAttribute(feet.uid, "poke"), "[")) .. maxh .. getItemAttribute(feet.uid, "poke"):sub(findLetter(getItemAttribute(feet.uid, "poke"), "/")))doTransformItem(feet.uid, 2222)doCureAllStatus(feet.uid)endif isInArray(ultraballs, getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid) thenlocal feet = getPlayerSlotItem(cid, CONST_SLOT_FEET)local maxh = tonumber(getItemAttribute(feet.uid, "poke"):match("/(.+)]"))doItemSetAttribute(feet.uid, "poke", getItemAttribute(feet.uid, "poke"):sub(1, findLetter(getItemAttribute(feet.uid, "poke"), "[")) .. maxh .. getItemAttribute(feet.uid, "poke"):sub(findLetter(getItemAttribute(feet.uid, "poke"), "/")))doTransformItem(feet.uid, 2220)doCureAllStatus(feet.uid)endif isInArray(greatballs, getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid) thenlocal feet = getPlayerSlotItem(cid, CONST_SLOT_FEET)local maxh = tonumber(getItemAttribute(feet.uid, "poke"):match("/(.+)]"))doItemSetAttribute(feet.uid, "poke", getItemAttribute(feet.uid, "poke"):sub(1, findLetter(getItemAttribute(feet.uid, "poke"), "[")) .. maxh .. getItemAttribute(feet.uid, "poke"):sub(findLetter(getItemAttribute(feet.uid, "poke"), "/")))doTransformItem(feet.uid, 2651)doCureAllStatus(feet.uid)endif isInArray(superballs, getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid) thenlocal feet = getPlayerSlotItem(cid, CONST_SLOT_FEET)local maxh = tonumber(getItemAttribute(feet.uid, "poke"):match("/(.+)]"))doItemSetAttribute(feet.uid, "poke", getItemAttribute(feet.uid, "poke"):sub(1, findLetter(getItemAttribute(feet.uid, "poke"), "[")) .. maxh .. getItemAttribute(feet.uid, "poke"):sub(findLetter(getItemAttribute(feet.uid, "poke"), "/")))doTransformItem(feet.uid, 2653)doCureAllStatus(feet.uid)endif isInArray(saffariballs, getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid) thenlocal feet = getPlayerSlotItem(cid, CONST_SLOT_FEET)local maxh = tonumber(getItemAttribute(feet.uid, "poke"):match("/(.+)]"))doItemSetAttribute(feet.uid, "poke", getItemAttribute(feet.uid, "poke"):sub(1, findLetter(getItemAttribute(feet.uid, "poke"), "[")) .. maxh .. getItemAttribute(feet.uid, "poke"):sub(findLetter(getItemAttribute(feet.uid, "poke"), "/")))doTransformItem(feet.uid, 2655)doCureAllStatus(feet.uid)endif isInArray(loveballs, getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid) thenlocal feet = getPlayerSlotItem(cid, CONST_SLOT_FEET)local maxh = tonumber(getItemAttribute(feet.uid, "poke"):match("/(.+)]"))doItemSetAttribute(feet.uid, "poke", getItemAttribute(feet.uid, "poke"):sub(1, findLetter(getItemAttribute(feet.uid, "poke"), "[")) .. maxh .. getItemAttribute(feet.uid, "poke"):sub(findLetter(getItemAttribute(feet.uid, "poke"), "/")))doTransformItem(feet.uid, 11621)doCureAllStatus(feet.uid)endif isInArray(dark, getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid) thenlocal feet = getPlayerSlotItem(cid, CONST_SLOT_FEET)local maxh = tonumber(getItemAttribute(feet.uid, "poke"):match("/(.+)]"))doItemSetAttribute(feet.uid, "poke", getItemAttribute(feet.uid, "poke"):sub(1, findLetter(getItemAttribute(feet.uid, "poke"), "[")) .. maxh .. getItemAttribute(feet.uid, "poke"):sub(findLetter(getItemAttribute(feet.uid, "poke"), "/")))doTransformItem(feet.uid, 11618)doCureAllStatus(feet.uid)endif isInArray(golden, getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid) thenlocal feet = getPlayerSlotItem(cid, CONST_SLOT_FEET)local maxh = tonumber(getItemAttribute(feet.uid, "poke"):match("/(.+)]"))doItemSetAttribute(feet.uid, "poke", getItemAttribute(feet.uid, "poke"):sub(1, findLetter(getItemAttribute(feet.uid, "poke"), "[")) .. maxh .. getItemAttribute(feet.uid, "poke"):sub(findLetter(getItemAttribute(feet.uid, "poke"), "/")))doTransformItem(feet.uid, 11624)doCureAllStatus(feet.uid)endif isInArray(frash, getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid) thenlocal feet = getPlayerSlotItem(cid, CONST_SLOT_FEET)local maxh = tonumber(getItemAttribute(feet.uid, "poke"):match("/(.+)]"))doItemSetAttribute(feet.uid, "poke", getItemAttribute(feet.uid, "poke"):sub(1, findLetter(getItemAttribute(feet.uid, "poke"), "[")) .. maxh .. getItemAttribute(feet.uid, "poke"):sub(findLetter(getItemAttribute(feet.uid, "poke"), "/")))doTransformItem(feet.uid, 11627)doCureAllStatus(feet.uid)endlocal bp = getPlayerSlotItem(cid, CONST_SLOT_BACKPACK)local items = getItemsInContainerById(bp.uid, 2224)for _, uid in pairs(items) dolocal maxh = tonumber(getItemAttribute(uid, "poke"):match("/(.+)]"))doItemSetAttribute(uid, "poke", getItemAttribute(uid, "poke"):sub(1, findLetter(getItemAttribute(uid, "poke"), "[")) .. maxh .. getItemAttribute(uid, "poke"):sub(findLetter(getItemAttribute(uid, "poke"), "/")))doTransformItem(uid, 2222)doCureAllStatus(uid)endlocal items = getItemsInContainerById(bp.uid, 2227)for _, uid in pairs(items) dolocal maxh = tonumber(getItemAttribute(uid, "poke"):match("/(.+)]"))doItemSetAttribute(uid, "poke", getItemAttribute(uid, "poke"):sub(1, findLetter(getItemAttribute(uid, "poke"), "[")) .. maxh .. getItemAttribute(uid, "poke"):sub(findLetter(getItemAttribute(uid, "poke"), "/")))doTransformItem(uid, 2220)doCureAllStatus(uid)endlocal items = getItemsInContainerById(bp.uid, 2657)for _, uid in pairs(items) dolocal maxh = tonumber(getItemAttribute(uid, "poke"):match("/(.+)]"))doItemSetAttribute(uid, "poke", getItemAttribute(uid, "poke"):sub(1, findLetter(getItemAttribute(uid, "poke"), "[")) .. maxh .. getItemAttribute(uid, "poke"):sub(findLetter(getItemAttribute(uid, "poke"), "/")))doTransformItem(uid, 2651)doCureAllStatus(uid)endlocal items = getItemsInContainerById(bp.uid, 2658)for _, uid in pairs(items) dolocal maxh = tonumber(getItemAttribute(uid, "poke"):match("/(.+)]"))doItemSetAttribute(uid, "poke", getItemAttribute(uid, "poke"):sub(1, findLetter(getItemAttribute(uid, "poke"), "[")) .. maxh .. getItemAttribute(uid, "poke"):sub(findLetter(getItemAttribute(uid, "poke"), "/")))doTransformItem(uid, 2653)doCureAllStatus(uid)endlocal items = getItemsInContainerById(bp.uid, 2659)for _, uid in pairs(items) dolocal maxh = tonumber(getItemAttribute(uid, "poke"):match("/(.+)]"))doItemSetAttribute(uid, "poke", getItemAttribute(uid, "poke"):sub(1, findLetter(getItemAttribute(uid, "poke"), "[")) .. maxh .. getItemAttribute(uid, "poke"):sub(findLetter(getItemAttribute(uid, "poke"), "/")))doTransformItem(uid, 2655)doCureAllStatus(uid)endlocal items = getItemsInContainerById(bp.uid, 2222)for _, uid in pairs(items) dolocal maxh = tonumber(getItemAttribute(uid, "poke"):match("/(.+)]"))doCureAllStatus(uid)doItemSetAttribute(uid, "poke", getItemAttribute(uid, "poke"):sub(1, findLetter(getItemAttribute(uid, "poke"), "[")) .. maxh .. getItemAttribute(uid, "poke"):sub(findLetter(getItemAttribute(uid, "poke"), "/")))endlocal items = getItemsInContainerById(bp.uid, 2220)for _, uid in pairs(items) dolocal maxh = tonumber(getItemAttribute(uid, "poke"):match("/(.+)]"))doCureAllStatus(uid)doItemSetAttribute(uid, "poke", getItemAttribute(uid, "poke"):sub(1, findLetter(getItemAttribute(uid, "poke"), "[")) .. maxh .. getItemAttribute(uid, "poke"):sub(findLetter(getItemAttribute(uid, "poke"), "/")))endlocal items = getItemsInContainerById(bp.uid, 2651)for _, uid in pairs(items) dolocal maxh = tonumber(getItemAttribute(uid, "poke"):match("/(.+)]"))doCureAllStatus(uid)doItemSetAttribute(uid, "poke", getItemAttribute(uid, "poke"):sub(1, findLetter(getItemAttribute(uid, "poke"), "[")) .. maxh .. getItemAttribute(uid, "poke"):sub(findLetter(getItemAttribute(uid, "poke"), "/")))endlocal items = getItemsInContainerById(bp.uid, 2653)for _, uid in pairs(items) dolocal maxh = tonumber(getItemAttribute(uid, "poke"):match("/(.+)]"))doCureAllStatus(uid)doItemSetAttribute(uid, "poke", getItemAttribute(uid, "poke"):sub(1, findLetter(getItemAttribute(uid, "poke"), "[")) .. maxh .. getItemAttribute(uid, "poke"):sub(findLetter(getItemAttribute(uid, "poke"), "/")))end------------ Novas ballslocal items = getItemsInContainerById(bp.uid, 11623) -- Lovefor _, uid in pairs(items) dolocal maxh = tonumber(getItemAttribute(uid, "poke"):match("/(.+)]"))doCureAllStatus(uid)doItemSetAttribute(uid, "poke", getItemAttribute(uid, "poke"):sub(1, findLetter(getItemAttribute(uid, "poke"), "[")) .. maxh .. getItemAttribute(uid, "poke"):sub(findLetter(getItemAttribute(uid, "poke"), "/")))endlocal items = getItemsInContainerById(bp.uid, 11621) -- Lovefor _, uid in pairs(items) dolocal maxh = tonumber(getItemAttribute(uid, "poke"):match("/(.+)]"))doCureAllStatus(uid)doItemSetAttribute(uid, "poke", getItemAttribute(uid, "poke"):sub(1, findLetter(getItemAttribute(uid, "poke"), "[")) .. maxh .. getItemAttribute(uid, "poke"):sub(findLetter(getItemAttribute(uid, "poke"), "/")))endlocal items = getItemsInContainerById(bp.uid, 11620) -- darkfor _, uid in pairs(items) dolocal maxh = tonumber(getItemAttribute(uid, "poke"):match("/(.+)]"))doCureAllStatus(uid)doItemSetAttribute(uid, "poke", getItemAttribute(uid, "poke"):sub(1, findLetter(getItemAttribute(uid, "poke"), "[")) .. maxh .. getItemAttribute(uid, "poke"):sub(findLetter(getItemAttribute(uid, "poke"), "/")))endlocal items = getItemsInContainerById(bp.uid, 11618)-- darkfor _, uid in pairs(items) dolocal maxh = tonumber(getItemAttribute(uid, "poke"):match("/(.+)]"))doCureAllStatus(uid)doItemSetAttribute(uid, "poke", getItemAttribute(uid, "poke"):sub(1, findLetter(getItemAttribute(uid, "poke"), "[")) .. maxh .. getItemAttribute(uid, "poke"):sub(findLetter(getItemAttribute(uid, "poke"), "/")))endlocal items = getItemsInContainerById(bp.uid, 11626)for _, uid in pairs(items) dolocal maxh = tonumber(getItemAttribute(uid, "poke"):match("/(.+)]"))doCureAllStatus(uid)doItemSetAttribute(uid, "poke", getItemAttribute(uid, "poke"):sub(1, findLetter(getItemAttribute(uid, "poke"), "[")) .. maxh .. getItemAttribute(uid, "poke"):sub(findLetter(getItemAttribute(uid, "poke"), "/")))endlocal items = getItemsInContainerById(bp.uid, 11624)for _, uid in pairs(items) dolocal maxh = tonumber(getItemAttribute(uid, "poke"):match("/(.+)]"))doCureAllStatus(uid)doItemSetAttribute(uid, "poke", getItemAttribute(uid, "poke"):sub(1, findLetter(getItemAttribute(uid, "poke"), "[")) .. maxh .. getItemAttribute(uid, "poke"):sub(findLetter(getItemAttribute(uid, "poke"), "/")))endlocal items = getItemsInContainerById(bp.uid, 11629)for _, uid in pairs(items) dolocal maxh = tonumber(getItemAttribute(uid, "poke"):match("/(.+)]"))doCureAllStatus(uid)doItemSetAttribute(uid, "poke", getItemAttribute(uid, "poke"):sub(1, findLetter(getItemAttribute(uid, "poke"), "[")) .. maxh .. getItemAttribute(uid, "poke"):sub(findLetter(getItemAttribute(uid, "poke"), "/")))endlocal items = getItemsInContainerById(bp.uid, 11627)for _, uid in pairs(items) dolocal maxh = tonumber(getItemAttribute(uid, "poke"):match("/(.+)]"))doCureAllStatus(uid)doItemSetAttribute(uid, "poke", getItemAttribute(uid, "poke"):sub(1, findLetter(getItemAttribute(uid, "poke"), "[")) .. maxh .. getItemAttribute(uid, "poke"):sub(findLetter(getItemAttribute(uid, "poke"), "/")))endselfSay('There you go! You and your pokemons are healthy again.')endendfunction onThink()if focus ~= 0 thena, b, c = selfGetPosition()if c ~= getThingPos(focus).z thenfocus = 0endendif focus ~= 0 thenif getDistanceToCreature(focus) > 3 thenfocus = 0endendreturn trueend Link para o comentário Compartilhar em outros sites More sharing options...
Posts Recomendados