Jump to content
  • 0
Sign in to follow this  
Nero

if mvp is dead = pvp off

Question

Hello may i request example if eddga is dead then pvp off in pay_fild11 else pvp on

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 1
23 hours ago, Nero said:

Hello may i request example if eddga is dead then pvp off in pay_fild11 else pvp on

Comment out the old Eddge spawn in npc/pre-re/mobs/fields/payon.txt

Like:

//pay_fild11,0,0,0,0	boss_monster	Eddga	1115,1,7200000,600000,1

And add this npc.

-	script	Eddga_Spawn_PVP	-1,{
OnOffPVP:
	removemapflag "pay_fild11",mf_pvp;
	sleep rand(600000,7200000);
OnInit:
	setmapflag "pay_fild11",mf_pvp;
	monster     "pay_fild11",0,0,"Eddga",1115,1,"Eddga_Spawn_PVP::OnOffPVP";
}

 

Share this post


Link to post
Share on other sites
  • 0

@Skorm How to make it announce?

    announce "[ System ] : Player ["+ strcharinfo(0) +"] of party ["+ strcharinfo(1) +"] has killed "+ getmonsterinfo( killedrid, MOB_NAME ) +" at "+ strcharinfo(3), bc_all;
-    script    MOB_NAME_Spawn_PVP    -1,{
OnOffPVP:
    removemapflag "orcsdun02",mf_pvp;
    sleep rand(60000,6000);
OnInit:
    setmapflag "orcsdun02",mf_pvp;
    monster     "orcsdun02",0,0,"Orc Lord",1190,1,"MOB_NAME_Spawn_PVP::OnOffPVP";
    announce "Orc Lord has spawned at Orc Dungeon 2!",bc_blue|bc_all;
 

Share this post


Link to post
Share on other sites
  • 0

Put your announce just after the first label OnOffPVP:

Share this post


Link to post
Share on other sites
  • 0

@Kreustoo
when i disabled this the mvp ladder stop recognizing it. But the Goodnews it off the pvp. 

//orcsdun02,0,0,0,0    boss_monster    Orc Lord    1190,0,2700000,0,0

i think this script can't read as mob_name
monster     "orcsdun02",0,0,"Orc Lord",1190,1,"MOB_NAME_Spawn_PVP::OnOffPVP";


i tried to change everything at my mvp ladder. but still no hope.

 

Share this post


Link to post
Share on other sites
  • 0

@Skorm senpai why mvp ladder cant read this npc
 

-	script	Eddga_Spawn_PVP	-1,{
OnOffPVP:
	removemapflag "pay_fild11",mf_pvp;
	sleep rand(600000,7200000);
OnInit:
	setmapflag "pay_fild11",mf_pvp;
	monster     "pay_fild11",0,0,"Eddga",1115,1,"Eddga_Spawn_PVP::OnOffPVP";
}

Share this post


Link to post
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.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.