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

Help GESIOR SHOPPING TFS 1.2

Auriaotbr

New Member
Joined
Feb 15, 2017
Messages
61
Reaction score
1
Good morning my dear friends having the following problem in my gesior shop. When buying a mount / outfit the player receives a "paper" in which he asks him to click and relogar to activate the mount or outfit. But when he replays nothing appears. Help me !


Imgur: The most awesome images on the Internet
Imgur: The most awesome images on the Internet <- RELOAD FOR ACTIVE YOUR MOUNT / OUTFIT
Imgur: The most awesome images on the Internet <- NOTHING




PASTEBIN



SHOP OTLAND - Pastebin.com SHOP.LUA GLOBALEVENTS
SHOPSYSTEM OTLAND - Pastebin.com SHOPSYSTEM WWW
 
your scroll need a player:addMount(numberofmountladybug)


MY SCROLL CODE
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if Player(cid) then
Item(item.uid):remove(1)
         doPlayerSendTextMessage(cid,19,"Relogue para ativar seu outfit ou montaria.")
         end
        return true
end
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if Player(cid) then
Item(item.uid):remove(1)
         doPlayerSendTextMessage(cid,19,"Relogue para ativar seu outfit ou montaria.")
player:addMount(27)
         end
        return true
end

<mount id="27" clientid="447" name="Lady Bug" speed="20" premium="no" />

test if works this change
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if Player(cid) then
Item(item.uid):remove(1)
         doPlayerSendTextMessage(cid,19,"Relogue para ativar seu outfit ou montaria.")
player:addMount(27)
         end
        return true
end

<mount id="27" clientid="447" name="Lady Bug" speed="20" premium="no" />

test if works this change



ERROR IN CONSOLE



Lua Script Error: [Action Interface]
data/actions/scripts/other/donate.lua:eek:nUse
data/actions/scripts/other/donate.lua:5: attempt to index global 'player' (a nil value)
stack traceback:
[C]: in function '__index'
data/actions/scripts/other/donate.lua:5: in function

Lua Script Error: [Action Interface]
data/actions/scripts/other/donate.lua:eek:nUse
data/actions/scripts/other/donate.lua:5: attempt to index global 'player' (a nil value)
stack traceback:
[C]: in function '__index'
data/actions/scripts/other/donate.lua:5: in function
 
Code:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
    player:addMount(27)
    player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You received a Lady bug mount to your character.")
    item:remove(1)
    return true
end

try it
 
Code:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
    player:addMount(27)
    player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You received a Lady bug mount to your character.")
    item:remove(1)
    return true
end

try it


Ok fix, and i need add all mounts, example


player:addMount(ID)
player:addMount(ID)
player:addMount(ID)
player:addMount(ID)
player:addMount(ID)
player:addMount(ID)
player:addMount(ID)
player:addMount(ID)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You received a Lady bug mount to your character.")
item:remove(1)


CORRECT?
 
Ok fix, and i need add all mounts, example


player:addMount(ID)
player:addMount(ID)
player:addMount(ID)
player:addMount(ID)
player:addMount(ID)
player:addMount(ID)
player:addMount(ID)
player:addMount(ID)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You received a Lady bug mount to your character.")
item:remove(1)


CORRECT?


Or i need create 1 scroll for 1 mount?
 
If you need 1 scroll for all mounts just add all player:addMount(ID) to this scroll but if you want split all mounts in the different scrolls you need create new script for different mount, so you can check the gamestore from otx 11 to buy mounts or outfits without scrolls.
 
If you need 1 scroll for all mounts just add all player:addMount(ID) to this scroll but if you want split all mounts in the different scrolls you need create new script for different mount, so you can check the gamestore from otx 11 to buy mounts or outfits without scrolls.


The Lady Bug Scroll is named Donate, how should I create the scroll of another mount? What name do I put? And just copy everything from the lady bug and change the id?
 
Back
Top