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

Adding mounts into shop, Gesior? How? =)

danne3131

Active Member
Joined
Jun 26, 2008
Messages
390
Solutions
1
Reaction score
48
I use TFS 1.1 with gesior for 1.0

Adding mounts into shop, Gesior? How? =) ive tried but didnt succed.. This has been requested many times i guess its a important thing to publish to the community, maybe im wrong i dno ! Thanks anyway!

Also i wounder if its possible to get Unban/changename/remove skull into shop without useing items ingame? =) Think its much cleaner without that! Thanks
 
go to data/creaturescripts/scripts and create an archive named addonmount.lua and paste this :
http://pastebin.com/3dhKA3zT

then add creaturescript.xml tag :

<event type="login" name="ShopMountAddon" script="addonmount.lua"/>

in globalevents/scripts/other/shop.lua paste this
http://pastebin.com/aVce3N1z

explaining :

to put into the website you will use the storage in addonmount.lua, and gesior will find the img by the storage too.



Credits;
me and Summ (tibiaking forum)
 
i have an custom one can u tell me where u edited? im trying to fix it by myself atm :d

Ive added the
Code:
elseif($data['offer_type'] == 'mount')
{
$offer_array['mount'][$i_mount]['id'] = $data['id'];
$offer_array['mount'][$i_mount]['container_id'] = $data['itemid1'];
$offer_array['mount'][$i_mount]['container_count'] = $data['count1'];
$offer_array['mount'][$i_mount]['item_id'] = $data['itemid1'];
$offer_array['mount'][$i_mount]['item_count'] = $data['count2'];
$offer_array['mount'][$i_mount]['points'] = $data['points'];
$offer_array['mount'][$i_mount]['description'] = $data['offer_description'];
$offer_array['mount'][$i_mount]['name'] = $data['offer_name'];
$i_mount++;
}
elseif($data['offer_type'] == 'addon')
{
$offer_array['addon'][$i_addon]['id'] = $data['id'];
$offer_array['addon'][$i_addon]['container_id'] = $data['itemid1'];
$offer_array['addon'][$i_addon]['container_count'] = $data['count1'];
$offer_array['addon'][$i_addon]['item_id'] = $data['itemid1'];
$offer_array['addon'][$i_addon]['item_count'] = $data['count2'];
$offer_array['addon'][$i_addon]['points'] = $data['points'];
$offer_array['addon'][$i_addon]['description'] = $data['offer_description'];
$offer_array['addon'][$i_addon]['name'] = $data['offer_name'];
$i_addon++;
}
already..
 
but aint so good when comes to changing codes and see if they are 100% correct. I guess if u have the mount already it wont let you buy it? am i wrong? @EnzzoCaaue
 
Back
Top