4 years of expirience in hosting 6 years in Tibia. Time well spęd
function onLogin(cid)
--[[
Przy "for" wybierasz ilosc mountow.
Gdy gracz loguje posiada "juz owe mounty".
]]--
if (getCreatureStorage(cid, 45000) == -1 then
for i = 1, 12 do
doPlayerAddMount(cid, i)
setCreatureStorage(cid, 45000, 1)
end
end
end
return TRUE
end
local mounts = {
[1] = "Pierwszy mount"
[4] = "Czwarty mount"
[8] = "Osmy mount"
}
function onLogin(cid)
local mount = mounts[item.actionid]
if (getCreatureStorage(cid, 45000) == -1 then
doPlayerAddMount(cid, mount)
setCreatureStorage(cid, 45000, 1)
end
end
return true
end
_doPlayerAddMount = doPlayerAddMount
function doPlayerAddMount(cid, id)
if (isPlayer(cid) and getPlayerGroupId(cid) > 1) then
return _doPlayerAddMount(cid, id)
end
return false
end
Jak nie chcecie pomóc to poco wogóle pisać
Chodzi o to że Player nie ma przełączania mountów w change outfit od samego początku...
Chcemy żeby miał wszystkie, jak GM.
@Ethan coś takiego, ale bez błędów, bo twoje nie działa
Pozatym zgłsiłem jeszcze buga dot. owszej kompilacji, ktoś ma pomysł?
http://otland.net/project.php?issueid=1939
??
:blink:setCreatureStorage(cid, 45000) == 1
W 0.2 jest Creature w 0.3 i 0.4 jest setPlayerStorageValueI co dzialalo?
:blink:
no faktycznie ;pkij z nazwą, chodzi o parametry i to == 1, zawsze było (cid, key, value) chyba nie?
Ethan said:Dopiero wstałem[...]