Automatic Spawn NPC/Monster ?

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
rigid
Posts: 175
Joined: Thu Dec 17, 2009 7:20 am

Automatic Spawn NPC/Monster ?

Post by rigid »

how to automatic spawn npc or monster
ie :


SPAWN GMShop with id : 2121212
spawn in giran with x= 1102011 y=132028 z=-1023
Just spawn 3 Hours / 24 Jam
takhs7
Posts: 110
Joined: Sun Aug 31, 2008 7:16 am

Re: Automatic Spawn NPC/Monster ?

Post by takhs7 »

i dont have time to give example script but.. here is how u can do it in few words..

make a .py script that spawns the npc.. add it to cron folder and then add a task to global_tasks in the database to run every xx hours/minutes u want.. or specific times.. (for example every day at 8pm).
peinado
Posts: 7
Joined: Tue Oct 27, 2009 6:04 pm

Re: Automatic Spawn NPC/Monster ?

Post by peinado »

onSpawn()
startquesttimer("respawn",...)
rigid
Posts: 175
Joined: Thu Dec 17, 2009 7:20 am

Re: Automatic Spawn NPC/Monster ?

Post by rigid »

can u give me a full code please ?
because im noob about that :(
mrvietdung
Posts: 43
Joined: Fri Dec 10, 2010 4:31 am

Re: Automatic Spawn NPC/Monster ?

Post by mrvietdung »

Can send a file or document about it? We need know put these code where and when.. Thanks for help.
Post Reply