|
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.
|