Jump to content
  • 0

Mvp random spawn


Sup3rHulk0r

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   2
  • Joined:  12/02/11
  • Last Seen:  

Hi, i have a made a script for a random MvP Spawn. The MvP should spawn all 1hour like a normal NPC but it should spawn at a definied place :

I tried it :

case 1: set .@x,50; set .@y,73; break;

case 2: set .@x,94; set .@y,211; break;

case 3: set .@x,110; set .@y,241; break;

prt_fild08,.@x,.@y,0,0 boss_monster Baphomet 1039,1,7200000,600000,1

And the script used for know the killed monster is

OnNPCKillEvent:

if ( killedrid == 1039 )

{

if(killedbaphomet == 1)

{

set killedbaphomet,2;

announce "You killed the baphomet! Come to see me for your reward.",3;

}

}

end;

}

but it still don't work, an idea /no1 ????

Thanks anyway

Edited by Sup3rHulk0r
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  70
  • Topics Per Day:  0.02
  • Content Count:  1245
  • Reputation:   392
  • Joined:  11/19/11
  • Last Seen:  

Try the following. Note that this for cases where you choose where the MvP Spawns. If you wanted an MvP spawn in a completely random location use the next script:


- script TestMvP -1,{
if(mobcount("prt_fild08","TestMvP::OnMyMobDead") >= 1){
end;
}
OnMinute00:
switch(rand(1,3)){
case 1:
set .@x,51;
set .@y,55;
break;

case 2:
set .@x,94;
set .@y,211;
break;

case 3:
set .@x,110;
set .@y,241;
break;
} //End Switch
monster "prt_fild08",.@x,.@y,"--ja--",1039,1,"TestMvP::OnMyMobDead";
end;

OnMyMobDead:
if(mvpdead != 1){
announce "You killed the baphomet! Come see me for your reward.",3;
set mvpdead, 1;
end;
}
} //End of Script
[/codeBOX]

[codeBOX]
- script TestMvP -1,{
if(mobcount("prt_fild08","TestMvP::OnMyMobDead") >= 1){
end;
}
OnMinute00:
monster "prt_fild08",0,0,"--ja--",1039,1,"TestMvP::OnMyMobDead";
end;

OnMyMobDead:
if(mvpdead != 1){
announce "You killed the baphomet! Come see me for your reward.",3;
set mvpdead, 1;
end;
}
} //End of Script
[/codeBOX]

Edited by Syouji
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...