ok let me give u better code....
Code:
class wolf_maker : default_npc
handler 32
push_event // ask
push_const 100
add
fetch_i
push_const 1
equal
branch_false L133371
push_event // reply
push_const 104
add
fetch_i
push_const 0
equal
branch_false L133371
shift_sp 1
push_event // talker
push_const 32
add
fetch_i
push_const 2375 //Item ID of collar
push_const 1012077 //NPC id of pet (npc_pch)
func_call 196 // func[CreatePet]
shift_sp -3
shift_sp -1
jump L133371
L133371
call_super //does anyone know wtf this does? is it even needed? O.o im not exactly a pro with ai coding ;p
handler_end
class_end
ok now if i did that right it should work, i not tested it so
basically create a new npc like a trader or something, set its npc_ai to wolf_maker, then make a html to bypass -h menu_select?ask=0&reply=1, and it will make a pet with the collar id and the npc pet id and make it so when u summon it, it actually comes out, and u wont need to manually add the pet to the DB....