Jump to content
  • 0

How do i put mob spawn time here?


Critica

Question


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  223
  • Reputation:   4
  • Joined:  02/23/12
  • Last Seen:  

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

Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

At the end of your "OnMobKill", write:

sleep <time, in ms>;
goto OnInit;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  223
  • Reputation:   4
  • Joined:  02/23/12
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  224
  • Reputation:   22
  • Joined:  03/23/12
  • Last Seen:  

Nope, the mvp tomb will only work for spawned mobs with the boss_monster flag on it.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  223
  • Reputation:   4
  • Joined:  02/23/12
  • Last Seen:  

ic..

is there a way i can put points everytime a player kills an mvp..?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  222
  • Reputation:   35
  • Joined:  12/13/11
  • Last Seen:  

OnMobKill:
set .@mvppoints, .@mvppoints+1;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  224
  • Reputation:   22
  • Joined:  03/23/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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

Link to comment
Share on other sites

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.

×
×
  • Create New...