Adding items to a shop

10/24/2011 19:23 mescottjr#1
I am looking to adding tamed pets to a shop but cant for the life of me figure it out? Does anyone know the sql code for adding this feature? Thanks for all your help.

PS. I have tried using Bills Merchant Adder but it doesnt have IM, Joker, or Abomination, it also doesnt show a selection to put the card in a shop as tamed.
10/24/2011 19:28 gavsta#2
change joker and abomination in the item resource to tamed, if you get me?:/


EDIT: Give me the card code to abomination and joker ill write up and query for you? i just don't know abomin or joker off top of my head :)
10/24/2011 20:05 ismokedrow#3
LUA:

NPC_Sell_Tamed_Creature()
dlg_text( "I sell Tamed Creatures" )
dlg_menu( "Tamed Pet", 'sell_creature_01()' )
end

function sell_creature_01()
insert_item(creature id, 1, 1, 1, -2147483648)
end

The above is an example that would add a function set to an NPC of choice and would enable a menu call 'Tamed Pet' which when clicked on will simply insert the tamed pet into the players inventory.
10/24/2011 22:15 killah0111#4
to OP, sorry im off topic but drow doesnt check his pm's and its important, so drow, could you please check pm's? thanks alot bro :D
10/25/2011 12:37 RoflcopterGoesSoiSoiSoi#5
Quote:
Originally Posted by ismokedrow View Post
LUA:

NPC_Sell_Tamed_Creature()
dlg_text( "I sell Tamed Creatures" )
dlg_menu( "Tamed Pet", 'sell_creature_01()' )
end

function sell_creature_01()
insert_item(creature id, 1, 1, 1, -2147483648)
end

The above is an example that would add a function set to an NPC of choice and would enable a menu call 'Tamed Pet' which when clicked on will simply insert the tamed pet into the players inventory.
any reason something like...
Code:
function npc_sell_tamed_creature()
dlg_text("Hi.")
dlg_menu("Pick me.", "insert_item(540037, 1, 1, 1, -2147483648)")
dlg_show()
end
...can't work?