Postado Setembro 5, 2014 10 anos Queria Ajuda Para Arrumar Scripts Do Meu Poketibia Pq Está Dando Erro ==>1° GoBack<== [04/09/2014 22:12:10] [Error - Action Interface] [04/09/2014 22:12:10] data/actions/scripts/goback/goback.lua:onUse [04/09/2014 22:12:10] Description: [04/09/2014 22:12:10] (luaDoCreateMonster) Cannot create monster: charmander [04/09/2014 22:12:10] [Error - Action Interface] [04/09/2014 22:12:10] data/actions/scripts/goback/goback.lua:onUse [04/09/2014 22:12:10] data/actions/scripts/goback/goback.lua:174: in function <data/actions/scripts/goback/goback.lua:4> ==>2°Moves<== [04/09/2014 22:12:10] Description: [04/09/2014 22:12:10] data/lib/moves lib.lua:19952: bad argument #1 to 'lower' (string expected, got boolean) [04/09/2014 22:12:10] stack traceback: [04/09/2014 22:12:10] [C]: in function 'lower' [04/09/2014 22:12:10] data/lib/moves lib.lua:19952: in function 'isJohto' [04/09/2014 22:12:10] data/lib/lib nick.lua:34: in function 'doCreateNickedPokemon' ==>3°Desconhecido<== [04/09/2014 22:11:18] [Error - GlobalEvent Interface] [04/09/2014 22:11:18] data/lib/lib nick.lua [04/09/2014 22:11:18] Description: [04/09/2014 22:11:18] (luaGetItemAttribute) Item not found [04/09/2014 22:11:18] [Error - LuaScriptInterface::loadFile] cannot open data/globalevents/scripts/shop.lua: No such file or directory [04/09/2014 22:11:18] [Warning - Event::loadScript] Cannot load script (data/globalevents/scripts/shop.lua) [04/09/2014 22:11:18] cannot open data/globalevents/scripts/shop.lua: No such file or directory [04/09/2014 22:11:18] [Error - GlobalEvent::configureEvent] No valid type "inviteparty" for globalevent with name inviteparty [04/09/2014 22:11:18] [Warning - BaseEvents::loadFromXml] Cannot configure an event [04/09/2014 22:11:18] [Error - GlobalEvent::configureEvent] No valid type "joinparty" for globalevent with name joinparty [04/09/2014 22:11:18] [Warning - BaseEvents::loadFromXml] Cannot configure an event [04/09/2014 22:11:18] [Error - GlobalEvent::configureEvent] No valid type "revokeparty" for globalevent with name revokeparty [04/09/2014 22:11:18] [Warning - BaseEvents::loadFromXml] Cannot configure an event [04/09/2014 22:11:18] [Error - GlobalEvent::configureEvent] No valid type "leaveparty" for globalevent with name leaveparty [04/09/2014 22:11:18] [Warning - BaseEvents::loadFromXml] Cannot configure an event [04/09/2014 22:11:18] [Error - GlobalEvent::configureEvent] No valid type "disbandparty" for globalevent with name disbandparty [04/09/2014 22:11:18] [Warning - BaseEvents::loadFromXml] Cannot configure an event 4°Desconhecido Tbm Esse Erro ele é Assim Eu Não Consigo Botar meu Pokemon para fora e Fica Aparecendo Toda hora Essa Mensagem 5° Desconhecido [04/09/2014 22:11:16] [Error - Weapon Interface] [04/09/2014 22:11:16] data/lib/lib nick.lua [04/09/2014 22:11:16] Description: [04/09/2014 22:11:16] (luaGetPlayerSlotItem) Player not found [04/09/2014 22:11:16] [Error - Weapon Interface] [04/09/2014 22:11:16] data/lib/lib nick.lua [04/09/2014 22:11:16] Description: [04/09/2014 22:11:16] (luaGetItemAttribute) Item not found [04/09/2014 22:11:16] [Error - Spell Interface] [04/09/2014 22:11:16] data/lib/lib nick.lua [04/09/2014 22:11:16] Description: [04/09/2014 22:11:16] (luaGetPlayerSlotItem) Player not found [04/09/2014 22:11:16] [Error - Spell Interface] [04/09/2014 22:11:16] data/lib/lib nick.lua [04/09/2014 22:11:17] Description: [04/09/2014 22:11:17] (luaGetItemAttribute) Item not found [04/09/2014 22:11:17] [Error - Action Interface] [04/09/2014 22:11:17] data/lib/lib nick.lua [04/09/2014 22:11:17] Description: [04/09/2014 22:11:17] (luaGetPlayerSlotItem) Player not found [04/09/2014 22:11:17] [Error - Action Interface] [04/09/2014 22:11:17] data/lib/lib nick.lua [04/09/2014 22:11:17] Description: [04/09/2014 22:11:17] (luaGetItemAttribute) Item not found [04/09/2014 22:11:17] [Error - TalkAction Interface] [04/09/2014 22:11:17] data/lib/lib nick.lua [04/09/2014 22:11:17] Description: [04/09/2014 22:11:17] (luaGetPlayerSlotItem) Player not found [04/09/2014 22:11:17] [Error - TalkAction Interface] [04/09/2014 22:11:17] data/lib/lib nick.lua [04/09/2014 22:11:17] Description: [04/09/2014 22:11:17] (luaGetItemAttribute) Item not found [04/09/2014 22:11:17] [Warning - TalkAction::loadFunction] Function "invisible" does not exist. [04/09/2014 22:11:17] [Error - MoveEvents Interface] [04/09/2014 22:11:17] data/lib/lib nick.lua [04/09/2014 22:11:17] Description: [04/09/2014 22:11:17] (luaGetPlayerSlotItem) Player not found [04/09/2014 22:11:17] [Error - MoveEvents Interface] [04/09/2014 22:11:17] data/lib/lib nick.lua [04/09/2014 22:11:17] Description: [04/09/2014 22:11:17] (luaGetItemAttribute) Item not found [04/09/2014 22:11:18] [Error - CreatureScript Interface] [04/09/2014 22:11:18] data/lib/lib nick.lua [04/09/2014 22:11:18] Description: [04/09/2014 22:11:18] (luaGetPlayerSlotItem) Player not found [04/09/2014 22:11:18] [Error - CreatureScript Interface] [04/09/2014 22:11:18] data/lib/lib nick.lua [04/09/2014 22:11:18] Description: [04/09/2014 22:11:18] (luaGetItemAttribute) Item not found [04/09/2014 22:11:18] [Error - CreatureEvent::configureEvent] No valid type for creature event.onMove [04/09/2014 22:11:18] [Warning - BaseEvents::loadFromXml] Cannot configure an event [04/09/2014 22:11:18] [Error - CreatureEvent::configureEvent] No valid type for creature event.move [04/09/2014 22:11:18] [Warning - BaseEvents::loadFromXml] Cannot configure an event [04/09/2014 22:11:18] [Error - CreatureEvent::configureEvent] No valid type for creature event.move [04/09/2014 22:11:18] [Warning - BaseEvents::loadFromXml] Cannot configure an event [04/09/2014 22:11:18] [Error - GlobalEvent Interface] [04/09/2014 22:11:18] data/lib/lib nick.lua [04/09/2014 22:11:18] Description: [04/09/2014 22:11:18] (luaGetPlayerSlotItem) Player not found A Cada Erro Resolvido Eu Dou Meu Obrigado e Dou Rep++ Scripts ==\/ Lib Nick local boost = getItemAttribute(getPlayerSlotItem(cid, 8).uid, "boost") function doCreateNickedPokemon(cid, poke, nick, effect, conv) -- By Jean Cassio local item = getPlayerSlotItem(cid, 8) local nick = getItemAttribute(getPlayerSlotItem(cid, 8).uid, "nick") local boost = getItemAttribute(getPlayerSlotItem(cid, 8).uid, "boost") or 0 local pokelevel = getItemAttribute(getPlayerSlotItem(cid, 8).uid, "pokelevel") or 0 if not conv then conv = cid end local poke = poke if not poke then poke = getItemAttribute(getPlayerSlotItem(cid, 8).uid, "description"):match("Contains a (.*).") end local vida = getItemAttribute(item.uid, "vida") local pokelevel = getItemAttribute(item.uid, "pokelevel") or 0 local gender = getItemText(item.uid) if gender == "" or gender == 0 or not gender then gender = 3 end local pos = {x=1872, y=1350, z=7} local reallevel = (boost + pokelevel) if not boost then boost = 0 end local boosta = ((boost + pokelevel) * 500) local levellife = ((getPlayerLevel(cid)) * (getItemAttribute(getPlayerSlotItem(cid, 8).uid, "level"))) if nick == "Uknown" then local removed = doCreateItem(1285, 1, pos) local nada = doCreateMonster(poke, pos) if isJohto(nada) then doCreatureChangeOutfit(nada, {lookType=pokelook[poke]}) doPlayerSendTextMessage(cid, 27, "Johto!") end setCreatureName(nada, ""..poke.." ["..reallevel.."]", getCreatureName(cid).." "..poke.."'s") doConvinceCreature(conv, nada) if poke == "gengar" or poke == "shadow gengar" or poke == "gastly" or poke == "haunter" then doCreatureSetStorage(nada, 632,1) end doRemoveItem(removed, 1) doTeleportThing(nada, getClosestFreeTile(nada, getThingPos(cid)), true) doCreatureSetSkullType(nada, gender) doSendMagicEffect(getCreaturePosition(nada), effect) if vida ~= 0 then setCreatureMaxHealth(nada, getPokemonMaxLife(poke) + levellife + boosta) doCreatureAddHealth(nada, -(tonumber(getPokemonMaxLife(poke) - vida))) else setCreatureMaxHealth(nada, ((getPokemonMaxLife(poke)) + (levellife) + (boosta))) doCreatureAddHealth(nada, getCreatureMaxHealth(nada)) doItemSetAttribute(item.uid, "vida", getCreatureHealth(nada)) end if getTilePzInfo(getCreaturePosition(cid)) then doSendMagicEffect(getThingPosition(cid), effect) end registerCreatureEvent(nada, "DiePoke") registerCreatureEvent(cid, "PlayerAttack") registerCreatureEvent(cid, "PlayerPokeDeath") registerCreatureEvent(cid, "LogoutPoke") registerCreatureEvent(nada, "Exp") registerCreatureEvent(nada, "dueldie") doItemSetAttribute(item.uid, "hp", getCreatureHealth(nada) / getCreatureMaxHealth(nada)) setPlayerStorageValue(cid, 9696, effect) if getItemAttribute(getPlayerSlotItem(cid,8).uid, "look") and getItemAttribute(getPlayerSlotItem(cid,8).uid, "look") ~= -1 then doCreatureChangeOutfit(nada, {lookType=getItemAttribute(getPlayerSlotItem(cid,8).uid, "look")}) end return false end local removed = doCreateItem(1285, 1, pos) local creature = doCreateMonster(poke, pos) doCreatureSetSkullType(creature, gender) setCreatureName(creature, ""..nick.." ["..reallevel.."]", getCreatureName(cid).." "..poke.."'s") doConvinceCreature(conv, creature) if poke == "gengar" or poke == "shadow gengar" or poke == "gastly" or poke == "haunter" then doCreatureSetStorage(creature, 632,1) end doRemoveItem(removed, 1) doTeleportThing(creature, getClosestFreeTile(creature, getThingPos(cid)), true) doSendMagicEffect(getCreaturePosition(creature), effect) doConvinceCreature(conv, creature) if vida ~= 0 then setCreatureMaxHealth(creature, getPokemonMaxLife(poke) + levellife + boosta) doCreatureAddHealth(creature, -(tonumber(getPokemonMaxLife(poke) - vida))) else setCreatureMaxHealth(creature, ((getPokemonMaxLife(poke)) + (levellife) + (boosta))) doCreatureAddHealth(creature, getCreatureMaxHealth(creature)) doItemSetAttribute(item.uid, "vida", getCreatureHealth(creature)) end if getTilePzInfo(getCreaturePosition(cid)) then doSendMagicEffect(getThingPosition(cid), effect) end registerCreatureEvent(creature, "DiePoke") registerCreatureEvent(cid, "PlayerAttack") registerCreatureEvent(cid, "PlayerPokeDeath") registerCreatureEvent(cid, "LogoutPoke") registerCreatureEvent(creature, "Exp") registerCreatureEvent(creature, "dueldie") setPlayerStorageValue(cid, 9696, effect) doItemSetAttribute(item.uid, "hp", getCreatureHealth(creature) / getCreatureMaxHealth(creature)) if getItemAttribute(getPlayerSlotItem(cid,8).uid, "look") and getItemAttribute(getPlayerSlotItem(cid,8).uid, "look") ~= -1 then doCreatureChangeOutfit(creature, {lookType=getItemAttribute(getPlayerSlotItem(cid,8).uid, "look")}) end return false end GoBack --GoBack + Nick System By Jean(Zamora Team) --Do not Copy whitout permision --Thanks! function onUse(cid, item, fromPosition, itemEx, toPosition) if getItemAttribute(item.uid, "description") == false or not getItemAttribute(item.uid, "description") then doRemoveItem(item.uid) doPlayerSendTextMessage(cid, 27, "Ball Bug, report to administration/staff.") end if item.itemid == 6132 then doTransformItem(item.uid, 2640) end if item.itemid == 2554 then doTransformItem(item.uid, 2654) end if getItemAttribute(item.uid, "levell") == False then doItemSetAttribute(item.uid, "levell", 0) end local ball = { [2532] = {pokein = 2532, pokeout = 2569}, -- ok [2569] = {pokein = 2532, pokeout = 2569}, -- ok [8818] = {pokein = 8818, pokeout = 8817}, -- ok [8817] = {pokein = 8818, pokeout = 8817}, -- ok [2653] = {pokein = 2653, pokeout = 2557}, -- ok [2557] = {pokein = 2653, pokeout = 2557}, -- ok [2654] = {pokein = 2654, pokeout = 2525}, -- ok [2525] = {pokein = 2654, pokeout = 2525}, -- ok [8819] = {pokein = 8819, pokeout = 8816}, -- ok [8816] = {pokein = 8819, pokeout = 8816}, -- ok [3983] = {pokein = 3983, pokeout = 2570}, -- ok [2570] = {pokein = 3983, pokeout = 2570}, -- ok [2652] = {pokein = 2652, pokeout = 2539}, -- ok [2539] = {pokein = 2652, pokeout = 2539}, -- ok [2655] = {pokein = 2655, pokeout = 3975}, -- ok [3975] = {pokein = 2655, pokeout = 3975}, -- ok [2648] = {pokein = 2648, pokeout = 3973}, -- ok [3973] = {pokein = 2648, pokeout = 3973}, -- ok [2640] = {pokein = 2647, pokeout = 2640}, -- ok [2647] = {pokein = 2647, pokeout = 2640}, -- ok [2531] = {pokein = 2531, pokeout = 2568}, -- ok [2568] = {pokein = 2531, pokeout = 2568}, -- ok } local effect = 188 if item.itemid == 8818 or item.itemid == 8817 then effect = 232 elseif item.itemid == 2653 or item.itemid == 2557 then effect = 190 elseif item.itemid == 2654 or item.itemid == 2525 then effect = 191 elseif item.itemid == 8819 or item.itemid == 8816 then effect = 235 elseif item.itemid == 2570 or item.itemid == 3983 then effect = 194 elseif item.itemid == 2539 or item.itemid == 2652 then effect = 189 elseif item.itemid == 2655 or item.itemid == 3975 then effect = 195 elseif item.itemid == 2648 or item.itemid == 3973 then effect = 192 elseif item.itemid == 2640 or item.itemid == 2647 then effect = 193 end local pokesaddons = { ["snorlax"] = {itens = {{2160, 2160}, {9315, 9340}, {9337}}, counts = {{100, 100}, {100,100}, {100}}, addons = {1081,1136,1102}}, ["dugtrio"] = {itens = {{9239,9236,9237,9238}}, counts = {{100,50,50,50}}, addons = {933}}, ["alakazam"] = {itens = {{2160}, {9259}, {9258}}, counts = {{100}, {100}, {100}}, addons = {39, 833,835}}, ["blastoise"] = {itens = {{9180, 9186, 9314}, {9183, 9189}, {9181}, {9182}}, counts = {{100, 100, 100}, {100,100}, {100}, {100}}, addons = {904,905,913,914}}, ["golem"] = {itens = {{9271} , {9272}}, counts = {{100}, {100}}, addons = {1005, 1006}}, ["dragonite"] = {itens = {{2160} , {9346}, {9344}}, counts = {{100}, {100}, {100}}, addons = {1088, 1078, 1081}}, } ----- GoBack Config ----- local MaximoSummon = 1 local poke_name1 = getItemSpecialDescription(item.uid):match("Contains a (.*).") local poke_name = getPokemonNameDescription(poke_name1) local summons = getCreatureSummons(cid) local nick = getItemAttribute(item.uid, "nick") local levels = getItemAttribute(item.uid, "level") local pk = getCreatureSummons(cid)[1] local ditto = getItemAttribute(item.uid, "ditto") if not ditto then ditto = 28 end local dittoi = getItemAttribute(item.uid, "dittoi") if not dittoi then dittoi = "ditto" end local go = getItemAttribute(item.uid, "go") local back = getItemAttribute(item.uid, "back") local msggg = getItemAttribute(item.uid, "nick") if msggg == "Uknown" then msggg = poke_name1 end local msggg = doCorrectString(msggg) ----- GoBack Config ----- ----- Msg GoBack ------ local msgunica = true local msgunicago1, msgunicaback1 = "Go, "..msggg.."!", "Come back, "..msggg.."!" local msgunicago2, msgunicaback2 = "Let's do it, "..msggg.."!", "Thanks for helping, "..msggg.."!" local msgunicago3, msgunicaback3 = "I choose you, "..msggg.."!", "That's enough, come back!" local msgunicago4, msgunicaback4 = "I need your help, "..msggg.."!", "You were great, "..msggg.."!" local msgunicago5, msgunicaback5 = "Let's fight, "..msggg.."!", "Excellent work, "..msggg.."!" local msgunicago6, msgunicaback6 = "It's battle time, "..msggg.."!", "Well done, "..msggg.."!" local random2 = math.random(1,6) if random2 == 1 then msgunicaback = msgunicaback1 elseif random2 == 2 then msgunicaback = msgunicaback2 elseif random2 == 3 then msgunicaback = msgunicaback3 elseif random2 == 4 then msgunicaback = msgunicaback4 elseif random2 == 5 then msgunicaback = msgunicaback5 elseif random2 == 6 then msgunicaback = msgunicaback6 end local random = math.random(1,6) if random == 1 then msgunicago = msgunicago1 elseif random == 2 then msgunicago = msgunicago2 elseif random == 3 then msgunicago = msgunicago3 elseif random == 4 then msgunicago = msgunicago4 elseif random == 5 then msgunicago = msgunicago5 elseif random == 6 then msgunicago = msgunicago6 end ----- Msg GoBack ------ local attacks = "" if getPlayerLevel(cid) < levels then local xxx = getItemAttribute(item.uid, "level") doPlayerSendCancel(cid, "You need level "..xxx.." or higher to use this pokemon.") return TRUE end ----------------------------------------Config Geral------------------------------------ if getPlayerStorageValue(cid, 63215) == 1 then return doPlayerSendCancel(cid, "You can't use pokeball while surfing.") end if getPlayerStorageValue(cid, 17000) == 1 then return doPlayerSendCancel(cid, "You can't use pokeball while flying.") end if getPlayerStorageValue(cid, 17001) == 1 then return doPlayerSendCancel(cid, "You can't use pokeball while riding.") end if getItemAttribute(item.uid, "vida") == false or not getItemAttribute(item.uid, "vida") or getItemAttribute(item.uid, "vida") == -1 then doPlayerSendTextMessage(cid, 27, poke_name1.." is Fainted ! Go to Pokemon Center and Talk {Hi} For Nurse Joy to Revive It!") return true end local summons = getCreatureSummons(cid) if item.uid ~= getPlayerSlotItem(cid, CONST_SLOT_FEET).uid then doPlayerSendCancel(cid, "Sorry, you must put your "..poke_name1.."'s Pokeball in the Pokeball place.") return TRUE end -----------------------------------------Config End-------------------------------------------- ----------------------------------------Script By Thalia(Edited By Zamora Team)----------------------------------- if(table.maxn(summons) < MaximoSummon) then -- no summons setPlayerStorageValue(cid, 9696, effect) doOpenBar(cid) local creature = doCreateNickedPokemon(cid, poke_name1, nick, effect) doConvinceCreature(cid, creature) exhaustion.set(cid, 9210, 0.7) doCreatureSetLookDir(creature, 2) registerCreatureEvent(creature, "DiePoke") registerCreatureEvent(cid, "a") registerCreatureEvent(cid, "PlayerAttack") registerCreatureEvent(cid, "PlayerPokeDeath") registerCreatureEvent(cid, "LogoutPoke") registerCreatureEvent(creature, "Exp") local feet = getPlayerSlotItem(cid, CONST_SLOT_FEET) if getItemAttribute(feet.uid, "currentlook") and getItemAttribute(feet.uid, "currentlook") ~= -1 then doSetCreatureOutfit(getCreatureSummons(cid)[1], {lookType=getItemAttribute(feet.uid, "currentlook")}, -1) end if getPlayerStorageValue(cid, 3333) == 1 then setPlayerStorageValue(cid, 4445, 0) setPlayerStorageValue(cid, 2333, getPlayerStorageValue(cid, 2333)+1) local num = getPlayerStorageValue(cid, 2333) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your use "..num.." pokes") end if poke_name == "Ditto" or poke_name == "ditto" then doSetCreatureOutfit(getCreatureSummons(cid)[1], {lookType = ditto, lookHead = 0, lookAddons = 0, lookLegs = 0, lookBody = 0, lookFeet = 0}, 50000) addEvent(doSendMoveMessage, 750, cid, string.lower(dittoi)) else end if not go or go == "-1" or go == -1 then doCreatureSay(cid, msgunicago, TALKTYPE_SAY) else doCreatureSay(cid, ""..go.."", TALKTYPE_SAY) end doTransformItem(getPlayerSlotItem(cid,8).uid, ball[item.itemid].pokeout, 1) --doItemSetAttribute(item.uid, "aid", defeatedIcons[poke_name1]) doCreatureSetSkullType(creature, gender) doSendMagicEffect(getCreaturePosition(creature), effect) if getPlayerStorageValue(cid, 661124) >= 1 then doPlayerSendTextMessage(cid, 26, "sounds/pokeball.wav") end BuildCoolDownMessage(cid) BuildWindowMessage(cid) else local porra = getPlayerName(cid) for _, pid in ipairs(summons) do if (table.maxn(summons) >= 1) then doItemSetAttribute(item.uid, "vida", getCreatureHealth(summons[1])) doItemSetAttribute(item.uid, "hp", getCreatureHealth(summons[1]) / getCreatureMaxHealth(summons[1])) doSendMagicEffect(getCreaturePosition(getCreatureSummons(cid)[1]), effect) if poke_name == "Ditto" or poke_name == "ditto" then doItemSetAttribute(item.uid, "ditto", getCreatureOutfit(getCreatureSummons(cid)[1]).lookType) else end if not back or back == "-1" or back == -1 then doCreatureSay(cid, msgunicaback, TALKTYPE_SAY) else doCreatureSay(cid, ""..back.."", TALKTYPE_SAY) end doRemoveCreature(pid) setPlayerStorageValue(cid,93000,50) --doItemSetAttribute(item.uid, "aid", icons[poke_name1]) BuildCloseWindowMessage(cid) if getPlayerStorageValue(cid, 661124) >= 1 then addEvent(doPlayerSendTextMessage, 300,cid, 26, "sounds/off.wav") end --addEvent(doUpdatePokemonsBar, 100, cid) exhaustion.set(cid, 9210, 0.7) doTransformItem(getPlayerSlotItem(cid,8).uid, ball[item.itemid].pokein, 1) local function gobackorlose(params) if getPlayerStorageValue(cid, 4445) >= 1 then if getPlayerStorageValue(cid, 5333) >= 1 then inimigo = getPlayerStorageValue(cid,6333) if isPlayer(inimigo) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You have lose duel") doPlayerSendTextMessage(inimigo, MESSAGE_STATUS_CONSOLE_RED, "You Win duel") setPlayerStorageValue(inimigo, 6333, 0) setPlayerStorageValue(cid, 6333, 0) setPlayerStorageValue(inimigo, 5333, 0) setPlayerStorageValue(cid, 5333, 0) setPlayerStorageValue(inimigo, 1333, 0) setPlayerStorageValue(cid, 1333, 0) setPlayerStorageValue(inimigo, 3333, 0) setPlayerStorageValue(cid, 3333, 0) setPlayerStorageValue(inimigo, 2333, 0) setPlayerStorageValue(cid, 2333, 0) setPlayerStorageValue(inimigo, 4445, 0) setPlayerStorageValue(cid, 4445, 0) --doCreatureSetNoMove(inimigo, 0) --doCreatureSetNoMove(cid, 0) doSendAnimatedText(getCreaturePosition(cid), "Loser", 144) doSendAnimatedText(getCreaturePosition(inimigo), "Wins", 210) doPlayerDisbandParty(cid) doPlayerDisbandParty(inimigo) doPlayerLeaveParty(cid) doPlayerLeaveParty(inimigo) else setPlayerStorageValue(cid, 6333, 0) setPlayerStorageValue(cid, 5333, 0) setPlayerStorageValue(cid, 1333, 0) setPlayerStorageValue(cid, 3333, 0) setPlayerStorageValue(cid, 2333, 0) setPlayerStorageValue(cid, 4445, 0) end end end end local function contagem(params) if getPlayerStorageValue(params.cid, 4445) == 1 then if params.count == 1 then addEvent(gobackorlose,1000, {cid = params.cid}) doPlayerSendTextMessage(params.cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have 1 seconds to go you pokemon or lose duel") return true end doPlayerSendTextMessage(params.cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have "..params.count.." seconds to go you pokemon or lose duel") addEvent(contagem,1000, {cid = params.cid,count = params.count-1}) end end if getPlayerStorageValue(cid, 3333) == 1 then setPlayerStorageValue(cid, 4445, 1) doSendAnimatedText(getCreaturePosition(cid), "Poke Down", 210) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have 20 seconds to go you pokemon or lose duel") addEvent(contagem,1000, {cid = cid,count = 19}) end if getPlayerStorageValue(cid, 5333) == 1 then if getPlayerStorageValue(cid, 2333) == getPlayerStorageValue(cid, 5333) then inimigo = getPlayerStorageValue(cid,6333) if isPlayer(inimigo) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You have lose duel") doPlayerSendTextMessage(inimigo, MESSAGE_STATUS_CONSOLE_RED, "You Win duel") setPlayerStorageValue(inimigo, 6333, 0) setPlayerStorageValue(cid, 6333, 0) setPlayerStorageValue(inimigo, 5333, 0) setPlayerStorageValue(cid, 5333, 0) setPlayerStorageValue(inimigo, 1333, 0) setPlayerStorageValue(cid, 1333, 0) setPlayerStorageValue(inimigo, 3333, 0) setPlayerStorageValue(cid, 3333, 0) setPlayerStorageValue(inimigo, 2333, 0) setPlayerStorageValue(cid, 2333, 0) setPlayerStorageValue(inimigo, 4445, 0) setPlayerStorageValue(cid, 4445, 0) --doCreatureSetNoMove(inimigo, 0) --doCreatureSetNoMove(cid, 0) doSendAnimatedText(getCreaturePosition(cid), "Loser", 144) doSendAnimatedText(getCreaturePosition(inimigo), "Wins", 210) doPlayerDisbandParty(cid) doPlayerDisbandParty(inimigo) doPlayerLeaveParty(cid) doPlayerLeaveParty(inimigo) else setPlayerStorageValue(cid, 6333, 0) setPlayerStorageValue(cid, 5333, 0) setPlayerStorageValue(cid, 1333, 0) setPlayerStorageValue(cid, 3333, 0) setPlayerStorageValue(cid, 2333, 0) setPlayerStorageValue(cid, 4445, 0) end end end return true end end end return true end ----------------------------------------Script By Thalia(Edited By Zamora Team)------------------------------------ Editado Setembro 5, 2014 10 anos por aline533 (veja o histórico de edições)
Postado Setembro 5, 2014 10 anos Você precisa postar o seu script para nós tentarmos arrumar para você.
Postado Setembro 5, 2014 10 anos Autor Aii Desculpa Tinha Me Esquecido Disso =) Quais Scripts Você Precisa ?
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.