-
Quem está por aqui 0 membros estão online
- Nenhum usuário registrado visualizando esta página.
- 0
Nós fazemos uso de cookies no seu dispositivo para ajudar a tornar este site melhor. Você pode ajustar suas configurações de cookies , caso contrário, vamos supor que você está bem para continuar.
Pergunta
Jasper Forks 0
Não sei se alguém pode tirar minha duvida, mas não sei se ta certo os scripts gymtile - playerswingym - pokesgymdefeat
[Warning - Event::loadScript] Event onUse not found (data/actions/scripts/pokemon/pokesgymdefeat.lua)
[Warning - Event::loadScript] Event onUse not found (data/actions/scripts/pokemon/playerswingym.lua)
[Warning - Event::loadScript] Event onUse not found (data/actions/scripts/pokemon/gymtile.lua)
gymtile
function onStepIn(cid, item, pos, frompos)
if getGlobalStorageValue(7376 == 1) then
doTeleportThing(cid, frompos)
doPlayerSendTextMessage(cid, 22, "Hope someone is already challenging the leader of the gym.")
else
setGlobalStorageValue(7376, 1)
setPlayerStorageValue(cid, 55778, 1)
doPlayerSendTextMessage(cid, 22, "You challenged the leader of the gym wanting to get out to pewter say !exit.")
doSendMagicEffect(pos, CONST_ME_MAGIC_BLUE)
doTeleportThing(cid, {x=676, y=778, z=7})
end
return true
end
playerswingym
function onKill(cid, target, lastHit)
if getCreatureTarget(cid) == 0 then
return true
end
if getPlayerStorageValue(cid, 55778) == 1 then
if getCreatureName(getCreatureTarget(cid)) == "Gym Geodude" then
setPlayerStorageValue(cid,987876, 1)
doPlayerSendTextMessage(cid, 20,"You Kill Gym Geodude of Brock.")
elseif getCreatureName(getCreatureTarget(cid)) == "Gym Onix" then
setPlayerStorageValue(cid,987877, 1)
doPlayerSendTextMessage(cid, 20,"You Kill Gym Onix of Brock.")
end
end
return true
end
pokesgymdefeat
function isSummon(uid)
return uid ~= getCreatureMaster(uid) or false
end
function onKill(cid, target, lastHit)
if isSummon(target) then
doSendMagicEffect(getCreaturePosition(cid), 10)
setPlayerStorageValue(getCreatureMaster(target),64999, 1)
if getCreatureName(cid) == "Gym Geodude" then
setPlayerStorageValue(getCreatureMaster(target),574225, -1)
doRemoveCreature(cid)
elseif getCreatureName(cid) == "Gym Onix" then
setPlayerStorageValue(getCreatureMaster(target),574226, -1)
doRemoveCreature(cid)
end
elseif isPlayer(target) then
doSendMagicEffect(getCreaturePosition(cid), 10)
if getCreatureName(cid) == "Gym Geodude" then
doRemoveCreature(cid)
setPlayerStorageValue(target, 574225, -1)
elseif getCreatureName(cid) == "Gym Onix" then
setPlayerStorageValue(target ,574226, -1)
doRemoveCreature(cid)
end
end
return true
end
ta aii eu não tenho certeza se esta correto ajudem aii xD
ahh o surf tbm ta dando erro não sei pq
[Error - MoveEvents Interface]
data/movements/scripts/surf.lua:onStepIn
Description:
(luaDoPlayerSendCancel) Player not found
Surf
local poke = {'Poliwag', 'Poliwhirl', 'Seaking', 'Dewgong', 'Blastoise', 'Tentacruel', 'Lapras', 'Gyarados', 'Omastar', 'Staryu', 'Vaporeon', 'Starmie', 'Goldeen', 'Seadra', 'Golduck', 'Squirtle', 'Wartortle', 'Tentacool', 'Snorlax', 'Poliwrath'}
local flie = {'4820', '4821', '4822', '4823', '4824', '4825', '4608', '4610', '4611', '4612', '4613', '4614', '4615', '4616', '4617', '4618', '4619', '4620', '4621', '4622', '4623', '4624', '4625', '4626', '4664', '4665', '4666'}
local surf = {
["Poliwag"] = {lookType=278, speed = 320},
["Poliwhirl"] = {lookType=137, speed = 480},
["Seaking"] = {lookType=269, speed = 520},
["Dewgong"] = {lookType=183, speed = 700},
["Blastoise"] = {lookType=184, speed = 850},
["Tentacruel"] = {lookType=185, speed = 750},
["Lapras"] = {lookType=186, speed = 960},
["Gyarados"] = {lookType=187, speed = 1050},
["Omastar"] = {lookType=188, speed = 680},
["Poliwrath"] = {lookType=190, speed = 680},
["Vaporeon"] = {lookType=191, speed = 800},
["Staryu"] = {lookType=266, speed = 385},
["Starmie"] = {lookType=267, speed = 685},
["Goldeen"] = {lookType=268, speed = 355},
["Seadra"] = {lookType=270, speed = 655},
["Golduck"] = {lookType=271, speed = 760},
["Squirtle"] = {lookType=273, speed = 365},
["Wartortle"] = {lookType=275, speed = 605},
["Tentacool"] = {lookType=277, speed = 340},
["Snorlax"] = {lookType=300, speed = 500},
}
function onStepIn(cid, item, position, fromPosition)
if not isPlayer(cid) and not isPremium(cid) then -- tire o primeiro not, atras do isPlayer para ativar o premium
doTeleportThing(cid, fromPosition, false)
doPlayerSendCancel(cid, "Only premium members are allowed to surf.")
return true
end
if getCreatureOutfit(cid).lookType == 316 then
doSendMagicEffect(fromPosition, 136)
end
if not isPlayer(cid) then
doTeleportThing(cid, fromPosition, false)
return true
end
if getPlayerStorageValue(cid, 63215) ~= 1 and getPlayerStorageValue(cid, 17000) <= 0 then
if #getCreatureSummons(cid) == 0 then
doPlayerSendCancel(cid, "You need a pokemon to surf.")
doTeleportThing(cid, fromPosition, false)
else
if (not isInArray(poke, getCreatureName(getCreatureSummons(cid)[1]))) then
doPlayerSendCancel(cid, "This pokemon cannot surf.")
doTeleportThing(cid, fromPosition, false)
return true
end
end
end
if #getCreatureSummons(cid) >= 1 and isInArray(poke, getCreatureName(getCreatureSummons(cid)[1])) and getPlayerStorageValue(cid, 63215) ~= 1 and getPlayerStorageValue(cid, 17000) <= 0 then
doSetCreatureOutfit(cid, surf[getCreatureName(getCreatureSummons(cid)[1])], -1)
doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", lets surf!", 1)
doChangeSpeed(cid, -(getCreatureSpeed(cid)))
doChangeSpeed(cid, surf[getCreatureName(getCreatureSummons(cid)[1])].speed)
setPlayerStorageValue(cid, 61209, getCreatureMaxHealth(getCreatureSummons(cid)[1]))
setPlayerStorageValue(cid, 61210, getCreatureHealth(getCreatureSummons(cid)[1]))
doRemoveCreature(getCreatureSummons(cid)[1])
addEvent(setPlayerStorageValue, 100, cid, 63215, 1)
end
if getPlayerStorageValue(cid, 63215) == 1 then
if getCreatureLookDir(cid) == 0 then
doSendMagicEffect(fromPosition, 33)
elseif getCreatureLookDir(cid) == 1 then
doSendMagicEffect(fromPosition, 49)
elseif getCreatureLookDir(cid) == 2 then
doSendMagicEffect(fromPosition, 30)
elseif getCreatureLookDir(cid) == 3 then
doSendMagicEffect(fromPosition, 51)
end
end
if getPlayerStorageValue(cid, 17000) >= 1 then
if not isInArray(flie, getTileInfo(fromPosition).itemid) then
return true
end
if getCreatureLookDir(cid) == 0 then
doSendMagicEffect(fromPosition, 33)
elseif getCreatureLookDir(cid) == 1 then
doSendMagicEffect(fromPosition, 49)
elseif getCreatureLookDir(cid) == 2 then
doSendMagicEffect(fromPosition, 30)
elseif getCreatureLookDir(cid) == 3 then
doSendMagicEffect(fromPosition, 51)
end
end
return true
end
function onStepOut(cid, item, position, fromPosition)
if not isInArray({4820, 4821, 4822, 4823, 4824, 4825}, getTileThingByPos(getThingPos(cid)).itemid) then
setPlayerGroupId(cid, 1)
end
return true
end
Clique aqui e adquira suas medalhas
Link para o comentário
Compartilhar em outros sites
1 resposta a esta questão
Posts Recomendados