zirra
Member
SOLVED!!
Problem:
Hey so I'm in the works of developing an English pokemon server as part of my live portfolio, and I cannot find any advice on this problem. The only relevant script I have found in my files is this one, this is not my script it came with the server I downloaded but it simply doesn't work. I've tried editing the local max, edited the false to true and vice versa. nothing changes.. any ideas?
Solution:
here is what I had to do
first i had to replace
with
Then add this
right underneath function onlogin so it looks like this.
thank you guys for the help, and thank you @MatheusMkalo for the solution.
Problem:
Hey so I'm in the works of developing an English pokemon server as part of my live portfolio, and I cannot find any advice on this problem. The only relevant script I have found in my files is this one, this is not my script it came with the server I downloaded but it simply doesn't work. I've tried editing the local max, edited the false to true and vice versa. nothing changes.. any ideas?
Code:
local effect = 1 -- put 0 to remove the effect when the Pokemon teleport
local max = 5 -- max distance between Pokemon and the player
local function doIncreaseSpeed(cid)
if not isCreature(cid) then return true end
doChangeSpeed(cid, -getCreatureSpeed(cid))
doChangeSpeed(cid, 2.5*(getCreatureBaseSpeed(cid) + getSpeed(cid)))
end
function onThink(cid, interval)
if true then --not isCreature(cid) then
return true
end
if getPlayerStorageValue(cid, 17000) >= 1 or getPlayerStorageValue(cid, 17001) >= 1 or getPlayerStorageValue(cid, 63215) >= 1 then
return true
end
if #getCreatureSummons(cid) >= 1 and not isCreature(getCreatureTarget(cid)) then
if getDistanceBetween(getThingPos(cid), getThingPos(getCreatureSummons(cid)[1])) > max then
doTeleportThing(getCreatureSummons(cid)[1], getThingPos(cid), false)
doSendMagicEffect(getThingPos(cid), 21)
end
end
return true
end
Solution:
here is what I had to do
first i had to replace
Code:
if true then --not isCreature(cid) then
Code:
if not isCreature(cid) then
Then add this
Code:
registerCreatureEvent(cid, "PokemonIdle")
Code:
function onLogin(cid)
registerCreatureEvent(cid, "PokemonIdle")
thank you guys for the help, and thank you @MatheusMkalo for the solution.
Last edited: