• logo_cipsoft
    Nowe serwery zostały otwarte 19 Lut 2025:
    Noctalia (Open PvP) Ignitera (Open PvP) us_logo Xybra (Open PvP)

Poprawa skryptu

Oskar1415

Advanced User
Dołączył
Luty 25, 2009
Posty
381
Liczba reakcji
22
Witam napisa?em taki o to skrypt

local config =
{

[20001] = {minreborn = 0, maxreborn = 1, tak = {x = 995, y = 999, z = 7}, nie = {x = 1000, y = 1000, z = 7}}
}

function onStepIn(cid, item, fromPos, itemEx, toPos)

if (config[item.uid].maxreborn and getPlayerRebirth(cid) > config[item.uid].maxreborn) then
doTeleportThing(cid, config[item.uid].tak)
else
if (config.minreborn and getPlayerRebirth(cid) > config.minreborn) then
doTeleportThing(cid, config[item.uid].nie)

end
end
end

return true
end

i nie wiem za bardzo czemu to nie funkcjonuje. Nie pokazuje ?adnego b??du w konsoli. M?g?by kto? mnie poprawi??

Z gory dzi?kuje i pozdrawiam.

---------- Tre?? dodana o 22:07 ----------

Ju? sobie poradzi?em ju? widzie gdzie pope?ni?em b??dy. A poza tym ?eby zrobi? to co chcia?em musia?em da? 3 warunki a nie 2 tak jak w tym skrypcie
 
Do góry