Jump to content
  • 0

How do i put mob spawn time here?


Question

Posted

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

7 answers to this question

Recommended Posts

Posted

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?

Posted
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

Posted

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;
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...