Sup3rHulk0r Posted January 13, 2012 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 9 Reputation: 2 Joined: 12/02/11 Last Seen: February 26, 2012 Share Posted January 13, 2012 (edited) 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 ???? Thanks anyway Edited January 13, 2012 by Sup3rHulk0r Quote Link to comment Share on other sites More sharing options...
Syouji Posted January 14, 2012 Group: Members Topic Count: 70 Topics Per Day: 0.01 Content Count: 1245 Reputation: 395 Joined: 11/19/11 Last Seen: January 15, 2020 Share Posted January 14, 2012 (edited) 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 Switchmonster "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 January 14, 2012 by Syouji Quote Link to comment Share on other sites More sharing options...
Sup3rHulk0r Posted January 14, 2012 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 9 Reputation: 2 Joined: 12/02/11 Last Seen: February 26, 2012 Author Share Posted January 14, 2012 Thx!! Quote Link to comment Share on other sites More sharing options...
Question
Sup3rHulk0r
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
????
Thanks anyway
Edited by Sup3rHulk0rLink to comment
Share on other sites
2 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.