[Question] Removing a npc

03/14/2012 05:36 [GM]Death[PM]#1
I think I have asked this once before but I could not locate what I was looking for. I'm trying to find out how to remove a NPC, How ever I am stumped on the part of how exactly to remove a NPC. If some one could comment with out flaming or if there is a post over this specific topic send me it and leave it at that. Thank you have a nice day.
03/14/2012 08:47 Sir*DeviL#2
You want Physically remove the NPC.. then its in your GAme Server..
you want it to have no actions nor npc located..
go to CQ_NPC and CQ_ACTIONS search for ID's
and physically remove it..
Quote:
C(For Example):\YOUR DIR\GameServer\ini\GameMap.ini
Best Regards..
03/14/2012 16:08 funhacker#3
Quote:
Originally Posted by [GM]Death[PM] View Post
I think I have asked this once before but I could not locate what I was looking for. I'm trying to find out how to remove a NPC, How ever I am stumped on the part of how exactly to remove a NPC. If some one could comment with out flaming or if there is a post over this specific topic send me it and leave it at that. Thank you have a nice day.
I've found the most useful way to remove an npc is to create an action code with the following
Type = 126 Data = 0 Param = "NPC ID: %id"

Then tie this action id to the npc in question if you're not sure how to do that you can do it for all by doing the following:

Code:
insert into cq_action
values
(7,0,0,126,0,'NPC ID: %id');

update cq_task
set
id_next = 7;
Be sure to back up your cq_task table first though to replace it afterwards.
As this will make EVERY task run that id.
03/14/2012 23:18 Zig[PM]1#4
Quote:
Originally Posted by [GM]Death[PM] View Post
I think I have asked this once before but I could not locate what I was looking for. I'm trying to find out how to remove a NPC, How ever I am stumped on the part of how exactly to remove a NPC. If some one could comment with out flaming or if there is a post over this specific topic send me it and leave it at that. Thank you have a nice day.
There is 2 places to find NPCs

cq_dynanpc

cq_npc

(click the NPC get its actions then Ctrl + F in the NPC table and search the id of the NPC u want to remove, find it and delete it or just change its Locations e.g the loaction is 1000 500 500

simply change it to 0 0 0 and your done ... easy as that )