SphereCommunity
Spaw script time defined - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Spaw script time defined (/Thread-Spaw-script-time-defined)



Spaw script time defined - victorstelzer - 11-13-2012 12:05 AM

I need to adjust this script

Define where the npc will be created, and whenever 18hrs, he created the Spaw of Npcs

------------------------------------------------------------


[ITEMDEF i_animal_spawner]
ID=0ed8
NAME=Animal Spawner
TYPE=T_NORMAL

ON=@Create
ATTR=ATTR_STATIC|ATTR_DECAY

ON=@Timer
OBJ=<MORE1>
IF (<OBJ.FLAGS>&statf_pet) || (<OBJ.BASEID>!=<MORE2>) || !(<OBJ>)
DORAND 4
SERV.NEWNPC=C_OSTARD_DESERT
SERV.NEWNPC=C_OSTARD_FOREST
SERV.NEWNPC=C_OSTARD_ZOSTRICH
SERV.NEWNPC=C_LLAMA
ENDDO
NEW.RANDLOCATION
NEW.HOME=<NEW.P>
NEW.HOMEDIST=5
IF !(<R10>)
NEW.COLOR=<EVAL {077a 07a9}>
ENDIF
MORE1=<NEW>
MORE2=<NEW.BASEID>
ENDIF
TIMER=60
RETURN 1

ON=@Dclick
SRC.GOUID <MORE1>
RETURN 1

[EOF]