quest::spawn(npc_type,grid,guildwarset,x,y,z); - Spawn "npc_type" on "grid" with "guildwarset" at "x","y","z".
Npc_type is the id of the NPC you want to spawn. This id is the same number that you name the quest file. Grid is a grid number for the zone that they should walk around on. Just use 0 if you don't want them to walk. Guildwarset should be 0 unless you are running a guildwar server. And the rest is the position.
You cannot spawn a copy of the same NPC in a different place to do what you want in #1. You need to make 2 NPCs with the same name and stats but different IDs because they need to have different quest files.
And for #2 yes you can have them both spawn each other if you use the right spawn() syntax.
For #3 you cannot do this with perl quests. Only NPCs can trigger quests, not items. You could make a NPC with those quest files to turn stuff into them. Or there is a section of the DB devoted to combining items in containers with formulas to get something to come out, but I ahve no idea of the syntax and its fairly buggy.
|