Fawkzz12 0 Postado Março 19, 2019 Share Postado Março 19, 2019 [Error - LuaScriptInterface::loadFile] data/creaturescripts/scripts/look.lua:339: unexpected symbol near ']' [19/03/2019 02:19:31] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/look.lua) [19/03/2019 02:19:31] data/creaturescripts/scripts/look.lua:339: unexpected symbol near ']' local NPCPrice = { ["seed"] = {price = 30}, ["electric box"] = {price = 150}, ["sandbag"] = {price = 150}, ["comb"] = {price = 150}, ["fur"] = {price = 150}, ["ruby"] = {price = 300}, ["essence of fire"] = {price = 30}, ["small stone"] = {price = 30}, ["pot of moss bug"] = {price = 150}, ["screw"] = {price = 30}, ["straw"] = {price = 100}, ["water gem"] = {price = 30}, ["remains of magikarp"] = {price = 100}, ["teeth"] = {price = 150}, ["bottle of poison"] = {price = 30}, ["water pendant"] = {price = 100}, ["feather"] = {price = 150}, ["pair of leaves"] = {price = 150}, ["apple bite"] = {price = 60}, ["bat wing"] = {price = 150}, ["pot of lava"] = {price = 150}, ["fire pendant"] = {price = 100}, ["bug venom"] = {price = 100}, ["bug antenna"] = {price = 150}, ["venom pendant"] = {price = 100}, ["pot of venom"] = {price = 150}, ["iron bracelet"] = {price = 150}, ["ice orb"] = {price = 150}, ["gosme"] = {price = 150}, ["darkness gem,"] = {price = 30}, ["bug gosme"] = {price = 80}, ["enchanted gem,"] = {price = 30}, ["horn"] = {price = 150}, ["venom piece"] = {price = 150}, ["big wing"] = {price = 500}, ["dragon tail"] = {price = 500}, ["purple tail"] = {price = 500}, ["majesty wing"] = {price = 500}, ["alligator skin"] = {price = 500}, ["big egg"] = {price = 500}, ["teel feather"] = {price = 50000}, ["red feather"] = {price = 50000}, ["yellow feather"] = {price = 50000}, ["registeel orb"] = {price = 50000}, ["white rune"] = {price = 500}, ["foxtail"] = {price = 500}, ["pot with fire"] = {price = 350}, ["water orb"] = {price = 350}, ["iron piece"] = {price = 350}, ["gyarados tail"] = {price = 500}, ["bulb"] = {price = 350}, ["long fang"] = {price = 400}, ["turtle hull"] = {price = 350}, ["dragon tooth"] = {price = 1000}, ["iron pin"] = {price = 400}, ["mimic clothes"] = {price = 1000}, ["scythe"] = {price = 1000}, ["buzz tail"] = {price = 1000}, ["bird beak"] = {price = 200}, ["rat tail"] = {price = 200}, ["longhorn"] = {price = 350}, ["luck medalion"] = {price = 350}, ["wool ball"] = {price = 400}, ["psyduck mug"] = {price = 350}, ["punch toy"] = {price = 500}, ["twisted spoon"] = {price = 350}, ["future orb"] = {price = 250}, ["champion belt"] = {price = 400}, ["slowpoke tail"] = {price = 300}, ["imam"] = {price = 250}, ["stick slash"] = {price = 300}, ["traces of ghost"] = {price = 350}, ["onix tail"] = {price = 300}, ["bone"] = {price = 250}, ["big tongue"] = {price = 500}, ["power orb"] = {price = 250}, ["bracelet"] = {price = 250}, ["star"] = {price = 200}, ["magma orb"] = {price = 250}, ["shell"] = {price = 200}, ["iron bar"] = {price = 250}, ["bag of poison dust"] = {price = 250}, ["steel wing"] = {price = 500}, ["green orb"] = {price = 250}, ["steel ore"] = {price = 400}, ["charizard wing"] = {price = 600}, ["magma box"] = {price = 400}, ["giant turtle hull"] = {price = 600}, ["red gyarados tail"] = {price = 10000}, ["crystal tail"] = {price = 1000}, ["Helix Fossil"] = {price = 150000}, ["Dome Fossil"] = {price = 150000}, ["Old Amber"] = {price = 500000}, ["green apple bite"] = {price = 400}, ["leaf pendant"] = {price = 350}, ["bone mask"] = {price = 400}, ["pikachu tail"] = {price = 300}, ["raichu tail"] = {price = 500}, ["blue vines"] = {price = 350}, ["stone orb"] = {price = 250}, ["locksmith of shell"] = {price = 200}, ["crab claw"] = {price = 200}, ["noctowl own"] = {price = 500}, ["togepi egg"] = {price = 400}, ["pinsir horn"] = {price = 350}, ["ice bra"] = {price = 500}, ["xatu wing"] = {price = 500}, ["snake tail"] = {price = 350}, ["seahorse tail"] = {price = 300}, ["strange sting"] = {price = 300}, ["tentacle"] = {price = 300}, ["strange rock"] = {price = 250}, ["skarmory wing"] = {price = 600}, ["scizor claw"] = {price = 600}, ["star gem"] = {price = 500}, ["tyranitar tail"] = {price = 600}, ["small tail"] = {price = 300}, ["magmar foot"] = {price = 1000}, ["red wing"] = {price = 500}, ["gligar claw"] = {price = 350}, ["insect foot"] = {price = 350}, ["strange wing"] = {price = 400}, ["mantine tail"] = {price = 400}, ["small tusk"] = {price = 350}, ["nidoran male ear"] = {price = 250}, ["skin tail"] = {price = 200}, ["sting hand"] = {price = 200}, ["aipom hand"] = {price = 250}, ["ledyba wing"] = {price = 200}, ["strange antenna"] = {price = 250}, ["squirry tail"] = {price = 250}, ["point of light"] = {price = 300}, ["kangaskhan ear"] = {price = 500}, ["strange flower"] = {price = 350}, ["great petal"] = {price = 350}, ["great flower"] = {price = 500}, ["fire tail"] = {price = 400}, ["strange horn"] = {price = 350}, ["piece of coral"] = {price = 350}, ["shuckle armor"] = {price = 350}, ["plant tail"] = {price = 250}, ["sea tail"] = {price = 250}, ["helicopter leaves"] = {price = 200}, ["strange spike"] = {price = 200}, ["bag of pollem"] = {price = 200}, ["Heart Stone"] = {price = 5000}, ["Leaf Stone"] = {price = 5000}, ["Water Stone"] = {price = 5000}, ["Fire Stone"] = {price = 5000}, ["Metal Stone"] = {price = 10000}, ["Crystal Stone"] = {price = 10000}, ["Ancient Stone"] = {price = 10000}, ["Venom Stone"] = {price = 5000}, ["Thunder Stone"] = {price = 5000}, ["Rock Stone"] = {price = 5000}, ["Punch Stone"] = {price = 5000}, ["Coccon Stone"] = {price = 5000}, ["Darkness Stone"] = {price = 5000}, ["Earth Stone"] = {price = 5000}, ["Enigma Stone"] = {price = 5000}, ["Ice Stone"] = {price = 5000}, ["Boost Stone"] = {price = 20000}, ["Mega Stone"] = {price = 50000}, } local NPCBattle = { ["Brock"] = {artig = "He is", cidbat = "Pewter"}, ["Misty"] = {artig = "She is", cidbat = "Cerulean"}, ["Blaine"] = {artig = "He is", cidbat = "Cinnabar"}, ["Sabrina"] = {artig = "She is", cidbat = "Saffron"}, --alterado v1.9 \/ peguem tudo! ["Kira"] = {artig = "She is", cidbat = "Viridian"}, ["Koga"] = {artig = "He is", cidbat = "Fushcia"}, ["Erika"] = {artig = "She is", cidbat = "Celadon"}, ["Surge"] = {artig = "He is", cidbat = "Vermilion"}, } local shinys = { ["Shiny Abra"] = "Dark Abra", ["Shiny Onix"] = "Crystal Onix", ["Shiny Gyarados"] = "Red Gyarados", ["Shiny Charizard"] = "Elder Charizard", ["Shiny Venusaur"] = "Black Venusaur", ["Shiny Blastoise"] = "Blue Blastoise", ["Shiny Farfetch'd"] = "Elite Farfetch'd", ["Shiny Hitmonlee"] = "Elite Hitmonlee", ["Shiny Himonchan"] = "Elite Hitmonchan", ["Shiny Snorlax"] = "Big Snorlax", } -- tabela adicionado ao configuration só procura por price = ..-- local xhelds = { [1] = {name = "X-Defense(Tier: 1)"}, [2] = {name = "X-Defense(Tier: 2)"}, [3] = {name = "X-Defense(Tier: 3)"}, [4] = {name = "X-Defense(Tier: 4)"}, [5] = {name = "X-Defense(Tier: 5)"}, [6] = {name = "X-Defense(Tier: 6)"}, [7] = {name = "X-Defense(Tier: 7)"}, [8] = {name = "X-Attack(Tier : 1)"}, [9] = {name = "X-Attack(Tier : 2)"}, [10] = {name = "X-Attack(Tier: 3)"}, [11] = {name = "X-Attack(Tier: 4)"}, [12] = {name = "X-Attack(Tier: 5)"}, [13] = {name = "X-Attack(Tier: 6)"}, [14] = {name = "X-Attack(Tier: 7)"}, [15] = {name = "X-Return(Tier: 1)"}, [16] = {name = "X-Return(Tier: 2)"}, [17] = {name = "X-Return(Tier: 3)"}, [18] = {name = "X-Return(Tier: 4)"}, [19] = {name = "X-Return(Tier: 5)"}, [20] = {name = "X-Return(Tier: 6)"}, [21] = {name = "X-Return(Tier: 7)"}, [22] = {name = "X-Hellfire(Tier: 1)"}, [23] = {name = "X-Hellfire(Tier: 2)"}, [24] = {name = "X-Hellfire(Tier: 3)"}, [25] = {name = "X-Hellfire(Tier: 4)"}, [26] = {name = "X-Hellfire(Tier: 5)"}, [27] = {name = "X-Hellfire(Tier: 6)"}, [28] = {name = "X-Hellfire(Tier: 7)"}, [29] = {name = "X-Poison(Tier: 1)"}, [30] = {name = "X-Poison(Tier: 2)"}, [31] = {name = "X-Poison(Tier: 3)"}, [32] = {name = "X-Poison(Tier: 4)"}, [33] = {name = "X-Poison(Tier: 5)"}, [34] = {name = "X-Poison(Tier: 6)"}, [35] = {name = "X-Poison(Tier: 7)"}, [36] = {name = "X-Boost(Tier: 1)"}, [37] = {name = "X-Boost(Tier: 2)"}, [38] = {name = "X-Boost(Tier: 3)"}, [39] = {name = "X-Boost(Tier: 4)"}, [40] = {name = "X-Boost(Tier: 5)"}, [41] = {name = "X-Boost(Tier: 6)"}, [42] = {name = "X-Boost(Tier: 7)"}, } local yhelds = { [1] = {name = "Y-Regeneration(Tier: 1)"}, [2] = {name = "Y-Regeneration(Tier: 2)"}, [3] = {name = "Y-Regeneration(Tier: 3)"}, [4] = {name = "Y-Regeneration(Tier: 4)"}, [5] = {name = "Y-Regeneration(Tier: 5)"}, [6] = {name = "Y-Regeneration(Tier: 6)"}, [7] = {name = "Y-Regeneration(Tier: 7)"}, [8] = {name = "Y-Cure(Tier: 1)"}, [9] = {name = "Y-Cure(Tier: 2)"}, [10] = {name = "Y-Cure(Tier: 3)"}, [11] = {name = "Y-Cure(Tier: 4)"}, [12] = {name = "Y-Cure(Tier: 5)"}, [13] = {name = "Y-Cure(Tier: 6)"}, [14] = {name = "Y-Cure(Tier: 7)"}, } function onLook(cid, thing, position, lookDistance) local str = {} if not isCreature(thing.uid) then local iname = getItemInfo(thing.itemid) if isPokeball(thing.itemid) and getItemAttribute(thing.uid, "poke") then unLock(thing.uid) local lock = getItemAttribute(thing.uid, "lock") local pokename = getItemAttribute(thing.uid, "poke") local heldx = getItemAttribute(thing.uid, "heldx") local heldy = getItemAttribute(thing.uid, "heldy") table.insert(str, "You see "..iname.article.." "..iname.name..".") if getItemAttribute(thing.uid, "unique") then table.insert(str, " It's an unique item.") end if getItemAttribute(thing.uid, "ehditto") == 1 then table.insert(str, "\nIt contains "..getArticle(pokename).." "..pokename.." (Ditto).\n") else table.insert(str, "\nIt contains "..getArticle(pokename).." "..pokename..".\n") end if lock and lock > 0 then table.insert(str, "It will unlock in ".. os.date("%d/%m/%y %X", lock)..".\n") end local boost = getItemAttribute(thing.uid, "boost") or 0 if boost > 0 then table.insert(str, "Boost level: +"..boost..".\n") end if getItemAttribute(thing.uid, "nick") then table.insert(str, "It's nickname is: "..getItemAttribute(thing.uid, "nick")..".\n") end if heldx and heldy then table.insert(str, "Holding: "..(xhelds[heldx].name).." and "..(yhelds[heldy].name)..". ") elseif heldx then table.insert(str, "Holding: "..(xhelds[heldx].name)..". ") elseif heldy then table.insert(str, "Holding: "..(yhelds[heldy].name)..". ") end if getItemAttribute(thing.uid, "gender") == SEX_MALE then table.insert(str, "It is male.") elseif getItemAttribute(thing.uid, "gender") == SEX_FEMALE then table.insert(str, "It is female.") else table.insert(str, "It is genderless.") end local boosts = getItemAttribute(thing.uid, "boost") or 0 local precocertos = 0 if boosts > 50 then precocertos = ((gastostones[50] * 5) * 400) + ((boosts - 50) * 100000) else precocertos = ((gastostones[boosts] * 5) * 400) end if getItemAttribute (thing.uid, "ehditto") then pokename = "Ditto" end local pokeCost = pokePrice[pokename] or math.floor(pokes[pokename].level * 150) if pokename == "Ditto" then table.insert (str, " Not sellable.") elseif pokes[pokename] then if boosts == 0 then table.insert (str, " Price: $"..pokeCost) else table.insert (str, " Price: $"..pokeCost.. " + $"..precocertos.. " (BOOST)") end end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, table.concat(str)) return false elseif string.find(iname.name, "fainted") or string.find(iname.name, "defeated") then table.insert(str, "You see a "..string.lower(iname.name)..". ") if isContainer(thing.uid) then table.insert(str, "(Vol: "..getContainerCap(thing.uid)..")") end table.insert(str, "\n") if getItemAttribute(thing.uid, "gender") == SEX_MALE then table.insert(str, "It is male.") elseif getItemAttribute(thing.uid, "gender") == SEX_FEMALE then table.insert(str, "It is female.") else table.insert(str, "It is genderless.") end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, table.concat(str)) return false elseif isContainer(thing.uid) then --containers if iname.name == "dead human" and getItemAttribute(thing.uid, "pName") then table.insert(str, "You see a dead human (Vol:"..getContainerCap(thing.uid).."). ") table.insert(str, "You recognize ".. getItemAttribute(thing.uid, "pName")..". ".. getItemAttribute(thing.uid, "article").." was killed by a ") table.insert(str, getItemAttribute(thing.uid, "attacker")..".") else table.insert(str, "You see "..iname.article.." "..iname.name..". (Vol:"..getContainerCap(thing.uid)..").") end if getPlayerGroupId(cid) >= 4 and getPlayerGroupId(cid) <= 6 then table.insert(str, "\nItemID: ["..thing.itemid.."]") local pos = getThingPos(thing.uid) table.insert(str, "\nPosition: [X: "..pos.x.."][Y: "..pos.y.."][Z: "..pos.z.."]") end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, table.concat(str)) return false elseif NPCPrice[iname.name] then local qnt = 0 if thing.type == 0 then qnt = 1 else qnt = thing.type end local p = getThingPos(thing.uid) local calculo = NPCPrice[iname.name].price * qnt table.insert(str, "You see ") if thing.type > 1 then table.insert(str, thing.type.." "..iname.plural..".") else table.insert(str, iname.article.." "..iname.name..".") end table.insert(str, "\n"..iname.description.." Price: $"..calculo..".") if getPlayerGroupId(cid) >= 4 and getPlayerGroupId(cid) <= 6 then table.insert(str, "\nItemID: ["..thing.itemid..]") table.insert(str, "\nPosition: ["..p.x..]["..p.y.."]["..p.z.."]) end sendMsgToPlayer(cid, MESSAGE_INFO_DESCR, table.concat(str)) return false else return true end local p = getThingPos(thing.uid) table.insert(str, "You see ") if thing.type > 1 then table.insert(str, thing.type.." "..iname.plural..".") else table.insert(str, iname.article.." "..iname.name..".") end table.insert(str, " It's an unique item.\n"..iname.description) if getPlayerGroupId(cid) >= 4 and getPlayerGroupId(cid) <= 6 then table.insert(str, "\nItemID: ["..thing.itemid.."]") table.insert(str, "\nPosition: ["..p.x.."]["..p.y.."]["..p.z.."]") end sendMsgToPlayer(cid, MESSAGE_INFO_DESCR, table.concat(str)) return false else return true end end local npcname = getCreatureName(thing.uid) if ehNPC(thing.uid) and NPCBattle[npcname] then --npcs duel table.insert(str, "You see "..npcname..". "..NPCBattle[npcname].artig.." leader of the gym from "..NPCBattle[npcname].cidbat..".") doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, table.concat(str)) return false end if getPlayerStorageValue(thing.uid, 697548) ~= -1 then table.insert(str, getPlayerStorageValue(thing.uid, 697548)) local pos = getThingPos(thing.uid) if youAre[getPlayerGroupId(cid)] then table.insert(str, "\nPosition: [X: "..pos.x.."][Y: "..pos.y.."][Z: "..pos.z.."]") end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, table.concat(str)) return false end if not isPlayer(thing.uid) and not isMonster(thing.uid) then --outros npcs table.insert(str, "You see "..getCreatureName(thing.uid)..".") doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, table.concat(str)) return false end if isPlayer(thing.uid) then --player doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, getPlayerDesc(cid, thing.uid, false)) return false end if getCreatureName(thing.uid) == "Evolution" then return false end if not isSummon(thing.uid) then --monstros table.insert(str, "You see a wild "..string.lower(getCreatureName(thing.uid))..".\n") table.insert(str, "Hit Points: "..getCreatureHealth(thing.uid).." / "..getCreatureMaxHealth(thing.uid)..".\n") if getPokemonGender(thing.uid) == SEX_MALE then table.insert(str, "It is male.") elseif getPokemonGender(thing.uid) == SEX_FEMALE then table.insert(str, "It is female.") else table.insert(str, "It is genderless.") end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, table.concat(str)) return false elseif isSummon(thing.uid) and not isPlayer(thing.uid) then --summons local boostlevel = getItemAttribute(getPlayerSlotItem(getCreatureMaster(thing.uid), 8).uid, "boost") or 0 if getCreatureMaster(thing.uid) == cid then local myball = getPlayerSlotItem(cid, 8).uid table.insert(str, "You see your "..string.lower(getCreatureName(thing.uid))..".") if boostlevel > 0 then table.insert(str, "\nBoost level: +"..boostlevel..".") end table.insert(str, "\nHit points: "..getCreatureHealth(thing.uid).."/"..getCreatureMaxHealth(thing.uid)..".") table.insert(str, "\n"..getPokemonHappinessDescription(thing.uid)) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, table.concat(str)) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You see a "..string.lower(getCreatureName(thing.uid))..".\nIt belongs to "..getCreatureName(getCreatureMaster(thing.uid))..".") end return false end return true end Link para o comentário Compartilhar em outros sites More sharing options...
Session Start 125 Postado Abril 18, 2019 Share Postado Abril 18, 2019 Spoiler local NPCPrice = { ["seed"] = {price = 30}, ["electric box"] = {price = 150}, ["sandbag"] = {price = 150}, ["comb"] = {price = 150}, ["fur"] = {price = 150}, ["ruby"] = {price = 300}, ["essence of fire"] = {price = 30}, ["small stone"] = {price = 30}, ["pot of moss bug"] = {price = 150}, ["screw"] = {price = 30}, ["straw"] = {price = 100}, ["water gem"] = {price = 30}, ["remains of magikarp"] = {price = 100}, ["teeth"] = {price = 150}, ["bottle of poison"] = {price = 30}, ["water pendant"] = {price = 100}, ["feather"] = {price = 150}, ["pair of leaves"] = {price = 150}, ["apple bite"] = {price = 60}, ["bat wing"] = {price = 150}, ["pot of lava"] = {price = 150}, ["fire pendant"] = {price = 100}, ["bug venom"] = {price = 100}, ["bug antenna"] = {price = 150}, ["venom pendant"] = {price = 100}, ["pot of venom"] = {price = 150}, ["iron bracelet"] = {price = 150}, ["ice orb"] = {price = 150}, ["gosme"] = {price = 150}, ["darkness gem,"] = {price = 30}, ["bug gosme"] = {price = 80}, ["enchanted gem,"] = {price = 30}, ["horn"] = {price = 150}, ["venom piece"] = {price = 150}, ["big wing"] = {price = 500}, ["dragon tail"] = {price = 500}, ["purple tail"] = {price = 500}, ["majesty wing"] = {price = 500}, ["alligator skin"] = {price = 500}, ["big egg"] = {price = 500}, ["teel feather"] = {price = 50000}, ["red feather"] = {price = 50000}, ["yellow feather"] = {price = 50000}, ["registeel orb"] = {price = 50000}, ["white rune"] = {price = 500}, ["foxtail"] = {price = 500}, ["pot with fire"] = {price = 350}, ["water orb"] = {price = 350}, ["iron piece"] = {price = 350}, ["gyarados tail"] = {price = 500}, ["bulb"] = {price = 350}, ["long fang"] = {price = 400}, ["turtle hull"] = {price = 350}, ["dragon tooth"] = {price = 1000}, ["iron pin"] = {price = 400}, ["mimic clothes"] = {price = 1000}, ["scythe"] = {price = 1000}, ["buzz tail"] = {price = 1000}, ["bird beak"] = {price = 200}, ["rat tail"] = {price = 200}, ["longhorn"] = {price = 350}, ["luck medalion"] = {price = 350}, ["wool ball"] = {price = 400}, ["psyduck mug"] = {price = 350}, ["punch toy"] = {price = 500}, ["twisted spoon"] = {price = 350}, ["future orb"] = {price = 250}, ["champion belt"] = {price = 400}, ["slowpoke tail"] = {price = 300}, ["imam"] = {price = 250}, ["stick slash"] = {price = 300}, ["traces of ghost"] = {price = 350}, ["onix tail"] = {price = 300}, ["bone"] = {price = 250}, ["big tongue"] = {price = 500}, ["power orb"] = {price = 250}, ["bracelet"] = {price = 250}, ["star"] = {price = 200}, ["magma orb"] = {price = 250}, ["shell"] = {price = 200}, ["iron bar"] = {price = 250}, ["bag of poison dust"] = {price = 250}, ["steel wing"] = {price = 500}, ["green orb"] = {price = 250}, ["steel ore"] = {price = 400}, ["charizard wing"] = {price = 600}, ["magma box"] = {price = 400}, ["giant turtle hull"] = {price = 600}, ["red gyarados tail"] = {price = 10000}, ["crystal tail"] = {price = 1000}, ["Helix Fossil"] = {price = 150000}, ["Dome Fossil"] = {price = 150000}, ["Old Amber"] = {price = 500000}, ["green apple bite"] = {price = 400}, ["leaf pendant"] = {price = 350}, ["bone mask"] = {price = 400}, ["pikachu tail"] = {price = 300}, ["raichu tail"] = {price = 500}, ["blue vines"] = {price = 350}, ["stone orb"] = {price = 250}, ["locksmith of shell"] = {price = 200}, ["crab claw"] = {price = 200}, ["noctowl own"] = {price = 500}, ["togepi egg"] = {price = 400}, ["pinsir horn"] = {price = 350}, ["ice bra"] = {price = 500}, ["xatu wing"] = {price = 500}, ["snake tail"] = {price = 350}, ["seahorse tail"] = {price = 300}, ["strange sting"] = {price = 300}, ["tentacle"] = {price = 300}, ["strange rock"] = {price = 250}, ["skarmory wing"] = {price = 600}, ["scizor claw"] = {price = 600}, ["star gem"] = {price = 500}, ["tyranitar tail"] = {price = 600}, ["small tail"] = {price = 300}, ["magmar foot"] = {price = 1000}, ["red wing"] = {price = 500}, ["gligar claw"] = {price = 350}, ["insect foot"] = {price = 350}, ["strange wing"] = {price = 400}, ["mantine tail"] = {price = 400}, ["small tusk"] = {price = 350}, ["nidoran male ear"] = {price = 250}, ["skin tail"] = {price = 200}, ["sting hand"] = {price = 200}, ["aipom hand"] = {price = 250}, ["ledyba wing"] = {price = 200}, ["strange antenna"] = {price = 250}, ["squirry tail"] = {price = 250}, ["point of light"] = {price = 300}, ["kangaskhan ear"] = {price = 500}, ["strange flower"] = {price = 350}, ["great petal"] = {price = 350}, ["great flower"] = {price = 500}, ["fire tail"] = {price = 400}, ["strange horn"] = {price = 350}, ["piece of coral"] = {price = 350}, ["shuckle armor"] = {price = 350}, ["plant tail"] = {price = 250}, ["sea tail"] = {price = 250}, ["helicopter leaves"] = {price = 200}, ["strange spike"] = {price = 200}, ["bag of pollem"] = {price = 200}, ["Heart Stone"] = {price = 5000}, ["Leaf Stone"] = {price = 5000}, ["Water Stone"] = {price = 5000}, ["Fire Stone"] = {price = 5000}, ["Metal Stone"] = {price = 10000}, ["Crystal Stone"] = {price = 10000}, ["Ancient Stone"] = {price = 10000}, ["Venom Stone"] = {price = 5000}, ["Thunder Stone"] = {price = 5000}, ["Rock Stone"] = {price = 5000}, ["Punch Stone"] = {price = 5000}, ["Coccon Stone"] = {price = 5000}, ["Darkness Stone"] = {price = 5000}, ["Earth Stone"] = {price = 5000}, ["Enigma Stone"] = {price = 5000}, ["Ice Stone"] = {price = 5000}, ["Boost Stone"] = {price = 20000}, ["Mega Stone"] = {price = 50000}, } local NPCBattle = { ["Brock"] = {artig = "He is", cidbat = "Pewter"}, ["Misty"] = {artig = "She is", cidbat = "Cerulean"}, ["Blaine"] = {artig = "He is", cidbat = "Cinnabar"}, ["Sabrina"] = {artig = "She is", cidbat = "Saffron"}, --alterado v1.9 \/ peguem tudo! ["Kira"] = {artig = "She is", cidbat = "Viridian"}, ["Koga"] = {artig = "He is", cidbat = "Fushcia"}, ["Erika"] = {artig = "She is", cidbat = "Celadon"}, ["Surge"] = {artig = "He is", cidbat = "Vermilion"}, } local shinys = { ["Shiny Abra"] = "Dark Abra", ["Shiny Onix"] = "Crystal Onix", ["Shiny Gyarados"] = "Red Gyarados", ["Shiny Charizard"] = "Elder Charizard", ["Shiny Venusaur"] = "Black Venusaur", ["Shiny Blastoise"] = "Blue Blastoise", ["Shiny Farfetch'd"] = "Elite Farfetch'd", ["Shiny Hitmonlee"] = "Elite Hitmonlee", ["Shiny Himonchan"] = "Elite Hitmonchan", ["Shiny Snorlax"] = "Big Snorlax", } -- tabela adicionado ao configuration só procura por price = ..-- local xhelds = { [1] = {name = "X-Defense(Tier: 1)"}, [2] = {name = "X-Defense(Tier: 2)"}, [3] = {name = "X-Defense(Tier: 3)"}, [4] = {name = "X-Defense(Tier: 4)"}, [5] = {name = "X-Defense(Tier: 5)"}, [6] = {name = "X-Defense(Tier: 6)"}, [7] = {name = "X-Defense(Tier: 7)"}, [8] = {name = "X-Attack(Tier : 1)"}, [9] = {name = "X-Attack(Tier : 2)"}, [10] = {name = "X-Attack(Tier: 3)"}, [11] = {name = "X-Attack(Tier: 4)"}, [12] = {name = "X-Attack(Tier: 5)"}, [13] = {name = "X-Attack(Tier: 6)"}, [14] = {name = "X-Attack(Tier: 7)"}, [15] = {name = "X-Return(Tier: 1)"}, [16] = {name = "X-Return(Tier: 2)"}, [17] = {name = "X-Return(Tier: 3)"}, [18] = {name = "X-Return(Tier: 4)"}, [19] = {name = "X-Return(Tier: 5)"}, [20] = {name = "X-Return(Tier: 6)"}, [21] = {name = "X-Return(Tier: 7)"}, [22] = {name = "X-Hellfire(Tier: 1)"}, [23] = {name = "X-Hellfire(Tier: 2)"}, [24] = {name = "X-Hellfire(Tier: 3)"}, [25] = {name = "X-Hellfire(Tier: 4)"}, [26] = {name = "X-Hellfire(Tier: 5)"}, [27] = {name = "X-Hellfire(Tier: 6)"}, [28] = {name = "X-Hellfire(Tier: 7)"}, [29] = {name = "X-Poison(Tier: 1)"}, [30] = {name = "X-Poison(Tier: 2)"}, [31] = {name = "X-Poison(Tier: 3)"}, [32] = {name = "X-Poison(Tier: 4)"}, [33] = {name = "X-Poison(Tier: 5)"}, [34] = {name = "X-Poison(Tier: 6)"}, [35] = {name = "X-Poison(Tier: 7)"}, [36] = {name = "X-Boost(Tier: 1)"}, [37] = {name = "X-Boost(Tier: 2)"}, [38] = {name = "X-Boost(Tier: 3)"}, [39] = {name = "X-Boost(Tier: 4)"}, [40] = {name = "X-Boost(Tier: 5)"}, [41] = {name = "X-Boost(Tier: 6)"}, [42] = {name = "X-Boost(Tier: 7)"}, } local yhelds = { [1] = {name = "Y-Regeneration(Tier: 1)"}, [2] = {name = "Y-Regeneration(Tier: 2)"}, [3] = {name = "Y-Regeneration(Tier: 3)"}, [4] = {name = "Y-Regeneration(Tier: 4)"}, [5] = {name = "Y-Regeneration(Tier: 5)"}, [6] = {name = "Y-Regeneration(Tier: 6)"}, [7] = {name = "Y-Regeneration(Tier: 7)"}, [8] = {name = "Y-Cure(Tier: 1)"}, [9] = {name = "Y-Cure(Tier: 2)"}, [10] = {name = "Y-Cure(Tier: 3)"}, [11] = {name = "Y-Cure(Tier: 4)"}, [12] = {name = "Y-Cure(Tier: 5)"}, [13] = {name = "Y-Cure(Tier: 6)"}, [14] = {name = "Y-Cure(Tier: 7)"}, } function onLook(cid, thing, position, lookDistance) local str = {} if not isCreature(thing.uid) then local iname = getItemInfo(thing.itemid) if isPokeball(thing.itemid) and getItemAttribute(thing.uid, "poke") then unLock(thing.uid) local lock = getItemAttribute(thing.uid, "lock") local pokename = getItemAttribute(thing.uid, "poke") local heldx = getItemAttribute(thing.uid, "heldx") local heldy = getItemAttribute(thing.uid, "heldy") table.insert(str, "You see "..iname.article.." "..iname.name..".") if getItemAttribute(thing.uid, "unique") then table.insert(str, " It's an unique item.") end if getItemAttribute(thing.uid, "ehditto") == 1 then table.insert(str, "\nIt contains "..getArticle(pokename).." "..pokename.." (Ditto).\n") else table.insert(str, "\nIt contains "..getArticle(pokename).." "..pokename..".\n") end if lock and lock > 0 then table.insert(str, "It will unlock in ".. os.date("%d/%m/%y %X", lock)..".\n") end local boost = getItemAttribute(thing.uid, "boost") or 0 if boost > 0 then table.insert(str, "Boost level: +"..boost..".\n") end if getItemAttribute(thing.uid, "nick") then table.insert(str, "It's nickname is: "..getItemAttribute(thing.uid, "nick")..".\n") end if heldx and heldy then table.insert(str, "Holding: "..(xhelds[heldx].name).." and "..(yhelds[heldy].name)..". ") elseif heldx then table.insert(str, "Holding: "..(xhelds[heldx].name)..". ") elseif heldy then table.insert(str, "Holding: "..(yhelds[heldy].name)..". ") end if getItemAttribute(thing.uid, "gender") == SEX_MALE then table.insert(str, "It is male.") elseif getItemAttribute(thing.uid, "gender") == SEX_FEMALE then table.insert(str, "It is female.") else table.insert(str, "It is genderless.") end local boosts = getItemAttribute(thing.uid, "boost") or 0 local precocertos = 0 if boosts > 50 then precocertos = ((gastostones[50] * 5) * 400) + ((boosts - 50) * 100000) else precocertos = ((gastostones[boosts] * 5) * 400) end if getItemAttribute (thing.uid, "ehditto") then pokename = "Ditto" end local pokeCost = pokePrice[pokename] or math.floor(pokes[pokename].level * 150) if pokename == "Ditto" then table.insert (str, " Not sellable.") elseif pokes[pokename] then if boosts == 0 then table.insert (str, " Price: $"..pokeCost) else table.insert (str, " Price: $"..pokeCost.. " + $"..precocertos.. " (BOOST)") end end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, table.concat(str)) return false elseif string.find(iname.name, "fainted") or string.find(iname.name, "defeated") then table.insert(str, "You see a "..string.lower(iname.name)..". ") if isContainer(thing.uid) then table.insert(str, "(Vol: "..getContainerCap(thing.uid)..")") end table.insert(str, "\n") if getItemAttribute(thing.uid, "gender") == SEX_MALE then table.insert(str, "It is male.") elseif getItemAttribute(thing.uid, "gender") == SEX_FEMALE then table.insert(str, "It is female.") else table.insert(str, "It is genderless.") end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, table.concat(str)) return false elseif isContainer(thing.uid) then --containers if iname.name == "dead human" and getItemAttribute(thing.uid, "pName") then table.insert(str, "You see a dead human (Vol:"..getContainerCap(thing.uid).."). ") table.insert(str, "You recognize ".. getItemAttribute(thing.uid, "pName")..". ".. getItemAttribute(thing.uid, "article").." was killed by a ") table.insert(str, getItemAttribute(thing.uid, "attacker")..".") else table.insert(str, "You see "..iname.article.." "..iname.name..". (Vol:"..getContainerCap(thing.uid)..").") end if getPlayerGroupId(cid) >= 4 and getPlayerGroupId(cid) <= 6 then table.insert(str, "\nItemID: ["..thing.itemid.."]") local pos = getThingPos(thing.uid) table.insert(str, "\nPosition: [X: "..pos.x.."][Y: "..pos.y.."][Z: "..pos.z.."]") end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, table.concat(str)) return false elseif NPCPrice[iname.name] then local qnt = 0 if thing.type == 0 then qnt = 1 else qnt = thing.type end local p = getThingPos(thing.uid) local calculo = NPCPrice[iname.name].price * qnt table.insert(str, "You see ") if thing.type > 1 then table.insert(str, thing.type.." "..iname.plural..".") else table.insert(str, iname.article.." "..iname.name..".") end table.insert(str, "\n"..iname.description.." Price: $"..calculo..".") if getPlayerGroupId(cid) >= 4 and getPlayerGroupId(cid) <= 6 then table.insert(str, "\nItemID: ["..thing.itemid.."]") table.insert(str, "\nPosition: ["..p.x.."]["..p.y.."]["..p.z.."]") end sendMsgToPlayer(cid, MESSAGE_INFO_DESCR, table.concat(str)) return false else return true end local p = getThingPos(thing.uid) table.insert(str, "You see ") if thing.type > 1 then table.insert(str, thing.type.." "..iname.plural..".") else table.insert(str, iname.article.." "..iname.name..".") end table.insert(str, " It's an unique item.\n"..iname.description) if getPlayerGroupId(cid) >= 4 and getPlayerGroupId(cid) <= 6 then table.insert(str, "\nItemID: ["..thing.itemid.."]") table.insert(str, "\nPosition: ["..p.x.."]["..p.y.."]["..p.z.."]") end sendMsgToPlayer(cid, MESSAGE_INFO_DESCR, table.concat(str)) return false else return true end end local npcname = getCreatureName(thing.uid) if ehNPC(thing.uid) and NPCBattle[npcname] then --npcs duel table.insert(str, "You see "..npcname..". "..NPCBattle[npcname].artig.." leader of the gym from "..NPCBattle[npcname].cidbat..".") doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, table.concat(str)) return false end if getPlayerStorageValue(thing.uid, 697548) ~= -1 then table.insert(str, getPlayerStorageValue(thing.uid, 697548)) local pos = getThingPos(thing.uid) if youAre[getPlayerGroupId(cid)] then table.insert(str, "\nPosition: [X: "..pos.x.."][Y: "..pos.y.."][Z: "..pos.z.."]") end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, table.concat(str)) return false end if not isPlayer(thing.uid) and not isMonster(thing.uid) then --outros npcs table.insert(str, "You see "..getCreatureName(thing.uid)..".") doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, table.concat(str)) return false end if isPlayer(thing.uid) then --player doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, getPlayerDesc(cid, thing.uid, false)) return false end if getCreatureName(thing.uid) == "Evolution" then return false end if not isSummon(thing.uid) then --monstros table.insert(str, "You see a wild "..string.lower(getCreatureName(thing.uid))..".\n") table.insert(str, "Hit Points: "..getCreatureHealth(thing.uid).." / "..getCreatureMaxHealth(thing.uid)..".\n") if getPokemonGender(thing.uid) == SEX_MALE then table.insert(str, "It is male.") elseif getPokemonGender(thing.uid) == SEX_FEMALE then table.insert(str, "It is female.") else table.insert(str, "It is genderless.") end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, table.concat(str)) return false elseif isSummon(thing.uid) and not isPlayer(thing.uid) then --summons local boostlevel = getItemAttribute(getPlayerSlotItem(getCreatureMaster(thing.uid), 8).uid, "boost") or 0 if getCreatureMaster(thing.uid) == cid then local myball = getPlayerSlotItem(cid, 8).uid table.insert(str, "You see your "..string.lower(getCreatureName(thing.uid))..".") if boostlevel > 0 then table.insert(str, "\nBoost level: +"..boostlevel..".") end table.insert(str, "\nHit points: "..getCreatureHealth(thing.uid).."/"..getCreatureMaxHealth(thing.uid)..".") table.insert(str, "\n"..getPokemonHappinessDescription(thing.uid)) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, table.concat(str)) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You see a "..string.lower(getCreatureName(thing.uid))..".\nIt belongs to "..getCreatureName(getCreatureMaster(thing.uid))..".") end return false end return true end Link para o comentário Compartilhar em outros sites More sharing options...
Posts Recomendados