• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

[Request] Addons & Mounts shop system

Status
Not open for further replies.

God Mythera

Veteran OT User
Joined
Aug 11, 2012
Messages
2,051
Solutions
2
Reaction score
260
Location
United States
Can anyone help me add mounts & addons to my shop system? To who ever can help me i will pay 1kk in real tibia for the help. I will only pay the 1kk after its done.

edit: I am using TFS 1.0 and gesior acc 2012
 
php
http://pastebin.com/nhe5JjeN
shop lua
http://pastebin.com/18BUjsAU
creaturescript lua:
http://pastebin.com/MhMUh0Cu
Register in creaturescript.xml:
<eventtype="login"name="AddonMount"script="addonMount.lua"/>
login.lua
registerCreatureEvent(cid, "AddonMount")

I didnt manage the shopadmin for now, since I do not use a shopadmin due to securitylacks. If you want a addon/mount in your shop these are the examples:
Code:
INSERT INTO `z_shop_offer` (`id`, `points`, `itemid1`, `count1`, `itemid2`, `count2`, `offer_type`, `offer_description`, `offer_name`) VALUES (1, 1800, 41, 1, 0, 0, 'mounts', 'Desert King Mount', 'Desert King Mount');
Code:
INSERT INTO `z_shop_offer` (`id`, `points`, `itemid1`, `count1`, `itemid2`, `count2`, `offer_type`, `offer_description`, `offer_name`) VALUES (1, 1000, 268, 1, 0, 0, 'addon', 'Nightmare Addon', 'Nightmare Addon');
I will test it now and reply in a few minutes.

I don't even know what tibia coins are and I make a heck of a lot more than $5 usd an hour.
It is all simple copy\paste can take only minutes.

Whats wrong with just have an addon and mount doll?

Tfs 1.0 mount doll doesnt add new mounts, which is why i need mounts on shop :P
 
Why does a mount doll do not add new mounts?????
Because i tried using 2-3 different mount dolls (tfs 1.0) and they dont work =\ i have a way to give people free points for reporting bugs and i do weekly free points, and they want the new mounts which the doll does not give. Also i have tested the shop for mounts it works great but the addon only adds it for a male and not for female? Also if there a way for it to show images of the mount look and addon look type? I'd just like to get this finished so i can send you the coins and go to bed :P
 
Because i tried using 2-3 different mount dolls (tfs 1.0) and they dont work =\ i have a way to give people free points for reporting bugs and i do weekly free points, and they want the new mounts which the doll does not give. Also i have tested the shop for mounts it works great but the addon only adds it for a male and not for female? Also if there a way for it to show images of the mount look and addon look type?

You should be easily able to fix the mount doll.. lol..
Anyway this is the shopadmin:
http://pastebin.com/RW7f5VSt

should work, didnt test.
 
Because i tried using 2-3 different mount dolls (tfs 1.0) and they dont work =\ i have a way to give people free points for reporting bugs and i do weekly free points, and they want the new mounts which the doll does not give. Also i have tested the shop for mounts it works great but the addon only adds it for a male and not for female? Also if there a way for it to show images of the mount look and addon look type?
These scripts are not set in stone you can edit or just re-write them completely to make them do what you want.
 
You should be easily able to fix the mount doll.. lol..
Anyway this is the shopadmin:
http://pastebin.com/RW7f5VSt

should work, didnt test.
But any possible way to add images? I will also look in the script to make sure

edit: Scratch that i have figured out how to add images for mounts ^^ but when purchasing an addon it still only gives the male outfit : s would i need to add a option for both male & female?
 
But any possible way to add images? I will also look in the script to make sure
Actually the URL is setten here:
Code:
<img src="images/mounts/' . $mounts['item_id'] . $config['site']['item_images_extension'] . '">
Which means for example desert king mount has ID 41. So you have to put desert king mount as 41.png into images/mounts/ folder.
Addons are in images/addons/ working same way like mounts.
 
Actually the URL is setten here:
Code:
<img src="images/mounts/' . $mounts['item_id'] . $config['site']['item_images_extension'] . '">
Which means for example desert king mount has ID 41. So you have to put desert king mount as 41.png into images/mounts/ folder.
Addons are in images/addons/ working same way like mounts.
I have already edited my post and figured it out, thanks :P but could you help me with the addon gender problem?
 
I have already edited my post and figured it out, thanks :p but could you help me with the addon gender problem?
You have to set male to itemid1 and female to itemid2 - my example was wrong heres a right one:
Code:
INSERT INTO `z_shop_offer` (`id`, `points`, `itemid1`, `count1`, `itemid2`, `count2`, `offer_type`, `offer_description`, `offer_name`) VALUES (1, 1000, 268, 1, 269, 1, 'addon', 'Nightmare Addon', 'Nightmare Addon');
 
You have to set male to itemid1 and female to itemid2 - my example was wrong heres a right one:
Code:
INSERT INTO `z_shop_offer` (`id`, `points`, `itemid1`, `count1`, `itemid2`, `count2`, `offer_type`, `offer_description`, `offer_name`) VALUES (1, 1000, 268, 1, 269, 1, 'addon', 'Nightmare Addon', 'Nightmare Addon');
Ok pm me your name so i can send coins.
 
Status
Not open for further replies.
Back
Top