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

Lua How can i add mounts and addons to shop offer (Gesior-Website)

ItsMeMagic

Old Tibia Player.
Joined
Sep 11, 2008
Messages
326
Reaction score
27
Location
exiva "Magic~
I really dont know how can i add mounts and addon to the shop offer i tryed a lot of thinks
Can someone put me an example of one of them, so i can continue doing the rest?
I really apreciatte it, sorry for my bad english but i tryed my best

Greetings,
Saf
 
Take a look at the shopsystem.php file, copy ex. items then modify the query, then in your shop.lua(globalevents) check for the type, if it's the mount range then give the player the mount.
Tip is the itemid as the mount id :p
 
{
$offer['id'] = $data['id'];
$offer['type'] = $data['offer_type'];
$offer['item_id'] = $data['itemid1'];
$offer['item_count'] = $data['count1'];
$offer['points'] = $data['points'];
$offer['description'] = $data['offer_description'];
$offer['name'] = $data['offer_name'];
}

Should i copy one of this?
i dont know.. :Ss
 
Back
Top