Critica Posted June 15, 2012 Posted June 15, 2012 OnInit: //monster "2@cata",0,0,"Gold",1840,300,strnpcinfo(0)+"::OnMobKill"; monster "ra_temsky",49,137,"Gold",1002,2,strnpcinfo(0)+"::OnMobKill"; end; OnMobKill: monster "ra_temsky",49,137,"Gold",1002,1,strnpcinfo(0)+"::OnMobKill"; set $Earn,$Earn + ( 100000 * $Tax / 100 ); set #GoldPoint,#GoldPoint + 1; dispbottom "Total Gold Point = "+#GoldPoint+" Points."; end; } is there a way i can put a mob time respawn here? just like on normal spawning..? kinda like this Kiel D-01 1734,1,7200000,3600000,0 Quote
Euphy Posted June 15, 2012 Posted June 15, 2012 At the end of your "OnMobKill", write: sleep <time, in ms>; goto OnInit; Quote
Critica Posted June 15, 2012 Author Posted June 15, 2012 thanks Euphy,, ok one last quesntion.. if i used and MVP boss as an monster here, does it count as an MVP too? i mean, does the MvP Tomb will work if the MVP dies? Quote
F0xxy Posted June 15, 2012 Posted June 15, 2012 Nope, the mvp tomb will only work for spawned mobs with the boss_monster flag on it. Quote
Critica Posted June 15, 2012 Author Posted June 15, 2012 ic.. is there a way i can put points everytime a player kills an mvp..? Quote
F0xxy Posted June 15, 2012 Posted June 15, 2012 OnInit: setarray .mobid[0],1511,1647,1785,1630,1399,1039,1874,2068,1272,1719,1046,1389,1112,1115,1957,1418,1871,1252,1768,1086,1688,1646, 1373,1147,1059,1150,1956,2022,1087,1190,1038,1157,1159,1502,1623,1650,1583,1708,1312,1751,1685,1648,1917,1658; end; OnNPCKillEvent: if(getgmlevel() >= 20) { end; } for (set .@c, 0; .@c < getarraysize(.mobid); set .@c, .@c + 1) if (killedrid == .mobid[.@c]) set .@s, 1; if (!.@s) end; set #mvppoints, #mvppoints+1; // remove the # if you want it to be char based instead of account based Quote
Emistry Posted June 15, 2012 Posted June 15, 2012 a shorter way for mvp announce. - script Sample -1,{ OnNPCKillEvent: if( getmonsterinfo( killedrid,22 ) ){ announce "Killed "+getmonsterinfo( killedrid,0 )+" at "+strcharinfo(3),bc_Self; set #MVP_Point,#MVP_Point + 1; } end; } Quote
Question
Critica
is there a way i can put a mob time respawn here? just like on normal spawning..?
kinda like this
Kiel D-01 1734,1,7200000,3600000,0
7 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.