• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Shopsystem - doesn't give items in-game

andre66

Banned User
Joined
Oct 27, 2008
Messages
295
Reaction score
0
Allright, i bought all these stuffs relogged like 4 times on tibia but still i dont revice these items !

I fixed login.lua!
What could it be ?
Do i need to change smth in htdocs ?

kbrn7p.jpg



Fast reply +rep
 
Make sure you have this in Global.lua

Code:
InitHistory = 0
InitShopComunication = 0

Red
 
You should create file with name login2.lua on creaturescripts/scripts folder
Code:
function onLogin(cid)
    if(InitHistory == 0) then
        local historyPage = addEvent(historyPage, 60000, {})
        InitHistory = historyPage
    end
    registerCreatureEvent(cid, "PlayerDeath")
    return TRUE
end

function historyPage(parameters)
    local historyPage = addEvent(historyPage, 60000, {})
    if (tonumber(os.date("%d")) ~= getGlobalStorageValue(23456)) then
        setGlobalStorageValue(23456, (tonumber(os.date("%d"))))
        db.executeQuery("UPDATE `players` SET `onlinetime7`=players.onlinetime6, `onlinetime6`=players.onlinetime5, `onlinetime5`=players.onlinetime4, `onlinetime4`=players.onlinetime3, `onlinetime3`=players.onlinetime2, `onlinetime2`=players.onlinetime1, `onlinetime1`=players.onlinetimetoday, `onlinetimetoday`=0;")
        db.executeQuery("UPDATE `players` SET `exphist7`=players.exphist6, `exphist6`=players.exphist5, `exphist5`=players.exphist4, `exphist4`=players.exphist3, `exphist3`=players.exphist2, `exphist2`=players.exphist1, `exphist1`=players.experience-players.exphist_lastexp, `exphist_lastexp`=players.experience;")
    end
    db.executeQuery("UPDATE `players` SET `onlinetimetoday`=players.onlinetimetoday+60, `onlinetimeall`=players.onlinetimeall+60 WHERE `online` = 1;")
end

And this to creaturescripts.xml
Code:
<event type="login" name="PlayerLogin" script="login2.lua"/>

If i help please Rep++
 
Just look so you not do same problem like me. In Admin shop you will se add offer just take

Point like 10

Itemid like 2160

In item count 1 or 100 if you wanna have 100 crystal coin set not 100 when you add item

In Comment 100 or 1 crystal coin

In item name Crystal coin 100x or 1x

Rep++ if i help you :)
 
Back
Top