Jump to content
  • 0

Map PK ON when MVP alive.


dungpt8782

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  02/21/14
  • Last Seen:  

Hi,


I just make event "MVP killer" and i want to make it harder. When MVP alive, that map will switch to PK ON, and OFF when MVP dead.


Thank you for help!


Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  135
  • Reputation:   20
  • Joined:  02/05/13
  • Last Seen:  

Can you post your script so I can add the PK effectively?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  509
  • Reputation:   80
  • Joined:  11/20/11
  • Last Seen:  

Untested

prontera,154,187,4	script	spawn	999,{
	
	getmapxy .@map$,.@x,.@y,1;
	if(!mobcount(.@map$,strnpcinfo(0)+"::OnMyMobDead")){
		mes "Monster spawned.";
		monster .@map$,.@x,.@y,"Poring",1002,1,strnpcinfo(0)+"::OnMyMobDead";
		pvpon;
	}else
	mes "The Monster still alive.";
	close;
end;
OnMyMobDead:
	pvpoff;
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  02/21/14
  • Last Seen:  

 

Untested

prontera,154,187,4	script	spawn	999,{
	
	getmapxy .@map$,.@x,.@y,1;
	if(!mobcount(.@map$,strnpcinfo(0)+"::OnMyMobDead")){
		mes "Monster spawned.";
		monster .@map$,.@x,.@y,"Poring",1002,1,strnpcinfo(0)+"::OnMyMobDead";
		pvpon;
	}else
	mes "The Monster still alive.";
	close;
end;
OnMyMobDead:
	pvpoff;
}

So i need to make this script to all MVP map?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  509
  • Reputation:   80
  • Joined:  11/20/11
  • Last Seen:  

this is just an example
you may remade or make up this script till you fullfill your imagination.

:)

Link to comment
Share on other sites


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

If your talking about a naturally spawning mvp tutn the map to pvpon with onint bevause spqwn reset when map server resets then add death event to the mvp or choice. Turn pvpoff with that label.when he dies also set a timer for the spawn to turn pvp back on.

Sent from phone sorry for grammar.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  100
  • Topics Per Day:  0.03
  • Content Count:  333
  • Reputation:   7
  • Joined:  03/01/14
  • Last Seen:  

If your talking about a naturally spawning mvp tutn the map to pvpon with onint bevause spqwn reset when map server resets then add death event to the mvp or choice. Turn pvpoff with that label.when he dies also set a timer for the spawn to turn pvp back on.

Sent from phone sorry for grammar.

 

This assumes that all his MvPs have a fix respawn time.

OnTopic: There is no label for "OnMVPSpawn" I guess, so you would need to remove the variable spawn times and make everything fix and then set up a timer like Skorm said.

Link to comment
Share on other sites


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

 

If your talking about a naturally spawning mvp tutn the map to pvpon with onint bevause spqwn reset when map server resets then add death event to the mvp or choice. Turn pvpoff with that label.when he dies also set a timer for the spawn to turn pvp back on.

Sent from phone sorry for grammar.

 

This assumes that all his MvPs have a fix respawn time.

OnTopic: There is no label for "OnMVPSpawn" I guess, so you would need to remove the variable spawn times and make everything fix and then set up a timer like Skorm said.

 

 

No it doesn't, I said if the NPC he is using for the "Event" is fixed... Lmao

 

I didn't assume anything. I gave a parameter to my answer.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  02/21/14
  • Last Seen:  

I mean, while MVP in map, this script will change that map to PK On. Else, PK Off.

i dunno how to make script to check where MVP still alive :(

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