Jump to content
  • 0

if mvp is dead = pvp off


Nero

Question


  • Group:  Members
  • Topic Count:  74
  • Topics Per Day:  0.02
  • Content Count:  194
  • Reputation:   2
  • Joined:  12/18/11
  • Last Seen:  

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

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 1

  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   381
  • Joined:  02/03/12
  • Last Seen:  

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

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   1
  • Joined:  08/12/17
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  215
  • Reputation:   45
  • Joined:  05/03/13
  • Last Seen:  

Put your announce just after the first label OnOffPVP:

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   1
  • Joined:  08/12/17
  • Last Seen:  

@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.

 

@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";
}
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...