• 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!

Site Shop System not sending addons or mounts

Daitaian

New Member
Joined
Jul 17, 2016
Messages
11
Reaction score
3
So, I have this problem... My gesior Shop System is not sending players who bought addons or mounts the product to their accounts, instead, its only sending an item to their account, item ID 11101 (tactical map). My data packs already include the addons and mounts .lua

Here is my shopsystem.php:
(tried posting but exceeded the character limit, ask me if necessary)

My shop.lua:
(tried posting but exceeded the character limit, ask me if necessary)

Who can help me??? Batman? Jesus? Saitama? Gesior?
I would really appreciate some help making this work.

Thanks!
 
TFS 1.0-1.?

data\creaturescripts\creaturescripts.xml
Code:
<event type="login" name="AddonsMounts" script="others/addons-montarias.lua"/>

data\creaturescripts\scripts\others\addons-montarias.lua
Code:
function onLogin(cid)
if getPlayerStorageValue(cid, 80+555884621212) == 1 then
doPlayerAddMount(cid, 6)
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
setPlayerStorageValue(cid, 80+555884621212, 2)

elseif getPlayerStorageValue(cid, 81+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 20)
setPlayerStorageValue(cid, 81+555884621212, 2)

elseif getPlayerStorageValue(cid, 82+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 29)
setPlayerStorageValue(cid, 82+555884621212, 2)

elseif getPlayerStorageValue(cid, 83+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 30)
setPlayerStorageValue(cid, 83+555884621212, 2)

elseif getPlayerStorageValue(cid, 84+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 27)
setPlayerStorageValue(cid, 84+555884621212, 2)

elseif getPlayerStorageValue(cid, 85+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 21)
setPlayerStorageValue(cid, 85+555884621212, 2)

elseif getPlayerStorageValue(cid, 90+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 24)
setPlayerStorageValue(cid, 90+555884621212, 2)

elseif getPlayerStorageValue(cid, 91+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 33)
setPlayerStorageValue(cid, 91+555884621212, 2)

elseif getPlayerStorageValue(cid, 92+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 41)
setPlayerStorageValue(cid, 92+555884621212, 2)

elseif getPlayerStorageValue(cid, 93+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 23)
setPlayerStorageValue(cid, 93+555884621212, 2)

elseif getPlayerStorageValue(cid, 94+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 9)
setPlayerStorageValue(cid, 94+555884621212, 2)

elseif getPlayerStorageValue(cid, 95+555884621212) == 2 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 37)
setPlayerStorageValue(cid, 95+555884621212, 2)

elseif getPlayerStorageValue(cid, 96+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 34)
setPlayerStorageValue(cid, 96+555884621212, 2)

elseif getPlayerStorageValue(cid, 97+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 36)
setPlayerStorageValue(cid, 97+555884621212, 2)

elseif getPlayerStorageValue(cid, 98+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 38)
setPlayerStorageValue(cid, 98+555884621212, 2)

elseif getPlayerStorageValue(cid, 116+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 43)
setPlayerStorageValue(cid, 116+555884621212, 2)

elseif getPlayerStorageValue(cid, 117+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 44)
setPlayerStorageValue(cid, 117+555884621212, 2)

elseif getPlayerStorageValue(cid, 118+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 45)
setPlayerStorageValue(cid, 118+555884621212, 2)

elseif getPlayerStorageValue(cid, 119+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 46)
setPlayerStorageValue(cid, 119+555884621212, 2)

elseif getPlayerStorageValue(cid, 120+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 47)
setPlayerStorageValue(cid, 120+555884621212, 2)

elseif getPlayerStorageValue(cid, 121+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 48)
setPlayerStorageValue(cid, 121+555884621212, 2)

elseif getPlayerStorageValue(cid, 122+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 49)
setPlayerStorageValue(cid, 122+555884621212, 2)

elseif getPlayerStorageValue(cid, 123+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 50)
setPlayerStorageValue(cid, 123+555884621212, 2)

elseif getPlayerStorageValue(cid, 124+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 51)
setPlayerStorageValue(cid, 124+555884621212, 2)

elseif getPlayerStorageValue(cid, 125+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 52)
setPlayerStorageValue(cid, 125+555884621212, 2)

-- Addons --

elseif getPlayerStorageValue(cid, 76+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received addon full from ArenaTibia Shop.')
doPlayerAddOutfit(cid, 147, 3)
doPlayerAddOutfit(cid, 143, 3)
setPlayerStorageValue(cid, 76+555884621212, 2)

elseif getPlayerStorageValue(cid, 77+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received addon full from ArenaTibia Shop.')
doPlayerAddOutfit(cid, 142, 3)
doPlayerAddOutfit(cid, 134, 3)
setPlayerStorageValue(cid, 77+555884621212, 2)

elseif getPlayerStorageValue(cid, 78+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received addon full from ArenaTibia Shop.')
doPlayerAddOutfit(cid, 156, 3)
doPlayerAddOutfit(cid, 152, 3)
setPlayerStorageValue(cid, 78+555884621212, 2)

elseif getPlayerStorageValue(cid, 79+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received addon full from ArenaTibia Shop.')
doPlayerAddOutfit(cid, 466, 3)
doPlayerAddOutfit(cid, 465, 3)
setPlayerStorageValue(cid, 79+555884621212, 2)

elseif getPlayerStorageValue(cid, 87+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received addon full from ArenaTibia Shop.')
doPlayerAddOutfit(cid, 141, 3)
doPlayerAddOutfit(cid, 133, 3)
setPlayerStorageValue(cid, 87+555884621212, 2)

elseif getPlayerStorageValue(cid, 88+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received addon full from ArenaTibia Shop.')
doPlayerAddOutfit(cid, 471, 3)
doPlayerAddOutfit(cid, 472, 3)
setPlayerStorageValue(cid, 88+555884621212, 2)

elseif getPlayerStorageValue(cid, 100+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received addon full from ArenaTibia Shop.')
doPlayerAddOutfit(cid, 138, 3)
doPlayerAddOutfit(cid, 130, 3)
setPlayerStorageValue(cid, 100+555884621212, 2)

elseif getPlayerStorageValue(cid, 126+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received addon full from ArenaTibia Shop.')
doPlayerAddOutfit(cid, 618, 3)
doPlayerAddOutfit(cid, 610, 3)
setPlayerStorageValue(cid, 126+555884621212, 2)

elseif getPlayerStorageValue(cid, 127+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received addon full from ArenaTibia Shop.')
doPlayerAddOutfit(cid, 633, 3)
doPlayerAddOutfit(cid, 632, 3)
setPlayerStorageValue(cid, 127+555884621212, 2)

elseif getPlayerStorageValue(cid, 128+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received addon full from ArenaTibia Shop.')
doPlayerAddOutfit(cid, 635, 3)
doPlayerAddOutfit(cid, 634, 3)
setPlayerStorageValue(cid, 128+555884621212, 2)

elseif getPlayerStorageValue(cid, 129+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received addon full from ArenaTibia Shop.')
doPlayerAddOutfit(cid, 637, 3)
doPlayerAddOutfit(cid, 636, 3)
setPlayerStorageValue(cid, 129+555884621212, 2)
    end
    return TRUE
end
 
TFS 1.2, distro from mitsuig.

Already have this lua installed, identical to what you posted, still not working.

I have the suspicion that perhaps the offers are not correctly listed in z_shop_offers, they have all the same itemid1 (11101) and no other information that could indicate to their storage values or addonmounts.lua IDs... Can someone show me a sample of their offers in that table?
 
Last edited:
TFS 1.0-1.?

data\creaturescripts\creaturescripts.xml
Code:
<event type="login" name="AddonsMounts" script="others/addons-montarias.lua"/>

data\creaturescripts\scripts\others\addons-montarias.lua
Code:
function onLogin(cid)
if getPlayerStorageValue(cid, 80+555884621212) == 1 then
doPlayerAddMount(cid, 6)
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
setPlayerStorageValue(cid, 80+555884621212, 2)

elseif getPlayerStorageValue(cid, 81+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 20)
setPlayerStorageValue(cid, 81+555884621212, 2)

elseif getPlayerStorageValue(cid, 82+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 29)
setPlayerStorageValue(cid, 82+555884621212, 2)

elseif getPlayerStorageValue(cid, 83+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 30)
setPlayerStorageValue(cid, 83+555884621212, 2)

elseif getPlayerStorageValue(cid, 84+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 27)
setPlayerStorageValue(cid, 84+555884621212, 2)

elseif getPlayerStorageValue(cid, 85+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 21)
setPlayerStorageValue(cid, 85+555884621212, 2)

elseif getPlayerStorageValue(cid, 90+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 24)
setPlayerStorageValue(cid, 90+555884621212, 2)

elseif getPlayerStorageValue(cid, 91+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 33)
setPlayerStorageValue(cid, 91+555884621212, 2)

elseif getPlayerStorageValue(cid, 92+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 41)
setPlayerStorageValue(cid, 92+555884621212, 2)

elseif getPlayerStorageValue(cid, 93+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 23)
setPlayerStorageValue(cid, 93+555884621212, 2)

elseif getPlayerStorageValue(cid, 94+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 9)
setPlayerStorageValue(cid, 94+555884621212, 2)

elseif getPlayerStorageValue(cid, 95+555884621212) == 2 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 37)
setPlayerStorageValue(cid, 95+555884621212, 2)

elseif getPlayerStorageValue(cid, 96+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 34)
setPlayerStorageValue(cid, 96+555884621212, 2)

elseif getPlayerStorageValue(cid, 97+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 36)
setPlayerStorageValue(cid, 97+555884621212, 2)

elseif getPlayerStorageValue(cid, 98+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 38)
setPlayerStorageValue(cid, 98+555884621212, 2)

elseif getPlayerStorageValue(cid, 116+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 43)
setPlayerStorageValue(cid, 116+555884621212, 2)

elseif getPlayerStorageValue(cid, 117+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 44)
setPlayerStorageValue(cid, 117+555884621212, 2)

elseif getPlayerStorageValue(cid, 118+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 45)
setPlayerStorageValue(cid, 118+555884621212, 2)

elseif getPlayerStorageValue(cid, 119+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 46)
setPlayerStorageValue(cid, 119+555884621212, 2)

elseif getPlayerStorageValue(cid, 120+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 47)
setPlayerStorageValue(cid, 120+555884621212, 2)

elseif getPlayerStorageValue(cid, 121+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 48)
setPlayerStorageValue(cid, 121+555884621212, 2)

elseif getPlayerStorageValue(cid, 122+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 49)
setPlayerStorageValue(cid, 122+555884621212, 2)

elseif getPlayerStorageValue(cid, 123+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 50)
setPlayerStorageValue(cid, 123+555884621212, 2)

elseif getPlayerStorageValue(cid, 124+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 51)
setPlayerStorageValue(cid, 124+555884621212, 2)

elseif getPlayerStorageValue(cid, 125+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received mount from ArenaTibia Shop.')
doPlayerAddMount(cid, 52)
setPlayerStorageValue(cid, 125+555884621212, 2)

-- Addons --

elseif getPlayerStorageValue(cid, 76+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received addon full from ArenaTibia Shop.')
doPlayerAddOutfit(cid, 147, 3)
doPlayerAddOutfit(cid, 143, 3)
setPlayerStorageValue(cid, 76+555884621212, 2)

elseif getPlayerStorageValue(cid, 77+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received addon full from ArenaTibia Shop.')
doPlayerAddOutfit(cid, 142, 3)
doPlayerAddOutfit(cid, 134, 3)
setPlayerStorageValue(cid, 77+555884621212, 2)

elseif getPlayerStorageValue(cid, 78+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received addon full from ArenaTibia Shop.')
doPlayerAddOutfit(cid, 156, 3)
doPlayerAddOutfit(cid, 152, 3)
setPlayerStorageValue(cid, 78+555884621212, 2)

elseif getPlayerStorageValue(cid, 79+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received addon full from ArenaTibia Shop.')
doPlayerAddOutfit(cid, 466, 3)
doPlayerAddOutfit(cid, 465, 3)
setPlayerStorageValue(cid, 79+555884621212, 2)

elseif getPlayerStorageValue(cid, 87+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received addon full from ArenaTibia Shop.')
doPlayerAddOutfit(cid, 141, 3)
doPlayerAddOutfit(cid, 133, 3)
setPlayerStorageValue(cid, 87+555884621212, 2)

elseif getPlayerStorageValue(cid, 88+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received addon full from ArenaTibia Shop.')
doPlayerAddOutfit(cid, 471, 3)
doPlayerAddOutfit(cid, 472, 3)
setPlayerStorageValue(cid, 88+555884621212, 2)

elseif getPlayerStorageValue(cid, 100+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received addon full from ArenaTibia Shop.')
doPlayerAddOutfit(cid, 138, 3)
doPlayerAddOutfit(cid, 130, 3)
setPlayerStorageValue(cid, 100+555884621212, 2)

elseif getPlayerStorageValue(cid, 126+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received addon full from ArenaTibia Shop.')
doPlayerAddOutfit(cid, 618, 3)
doPlayerAddOutfit(cid, 610, 3)
setPlayerStorageValue(cid, 126+555884621212, 2)

elseif getPlayerStorageValue(cid, 127+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received addon full from ArenaTibia Shop.')
doPlayerAddOutfit(cid, 633, 3)
doPlayerAddOutfit(cid, 632, 3)
setPlayerStorageValue(cid, 127+555884621212, 2)

elseif getPlayerStorageValue(cid, 128+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received addon full from ArenaTibia Shop.')
doPlayerAddOutfit(cid, 635, 3)
doPlayerAddOutfit(cid, 634, 3)
setPlayerStorageValue(cid, 128+555884621212, 2)

elseif getPlayerStorageValue(cid, 129+555884621212) == 1 then
doPlayerSendTextMessage(cid, 18, 'You received addon full from ArenaTibia Shop.')
doPlayerAddOutfit(cid, 637, 3)
doPlayerAddOutfit(cid, 636, 3)
setPlayerStorageValue(cid, 129+555884621212, 2)
    end
    return TRUE
end
wtfffffff
 
I've been cracking my head so long with this issue that I had to take a break for some photoshop humor, decided to share with you.

sPKaPtb.jpg
 
Okay... I figured it out.

Basically I am an idiot and simply all the addons and mount offers that came with my gesior were just samples, also, my shopadmin.php was shit and didn't had the proper option to set an addon or mount on offer, I had to manually trade the item ID of each one of them and create a new collumn for offer_type, but it worked.

Posting this here in case someone else in the future has the same problem. Cya.
 
Back
Top