Jump to content

Question

2 answers to this question

Recommended Posts

  • 0
Posted
Index: data/scripts/handlers/bypasshandlers/OlympiadManagerLink.java
===================================================================
--- data/scripts/handlers/bypasshandlers/OlympiadManagerLink.java	(revision 8230)
+++ data/scripts/handlers/bypasshandlers/OlympiadManagerLink.java	(working copy)
@@ -124,10 +124,16 @@
						activeChar.sendPacket(html);
						break;
					case 4:
-						OlympiadManager.getInstance().registerNoble(activeChar, CompetitionType.NON_CLASSED);
+						if(activeChar.getPvpKills() >= 100)
+							OlympiadManager.getInstance().registerNoble(activeChar, CompetitionType.NON_CLASSED);
+						else
+							activeChar.sendMessage("You need "+(100 - activeChar.getPvpKills())+" Pvp's to register in Olympiad");
						break;
					case 5:
-						OlympiadManager.getInstance().registerNoble(activeChar, CompetitionType.CLASSED);
+						if(activeChar.getPvpKills() >= 100)
+							OlympiadManager.getInstance().registerNoble(activeChar, CompetitionType.CLASSED);
+						else
+							activeChar.sendMessage("You need "+(100 - activeChar.getPvpKills())+" Pvp's to register in Olympiad");
						break;
					case 6:
						passes = Olympiad.getInstance().getNoblessePasses(activeChar, false);
@@ -174,7 +180,10 @@
						}
						break;
					case 11:
-						OlympiadManager.getInstance().registerNoble(activeChar, CompetitionType.TEAMS);
+						if(activeChar.getPvpKills() >= 100)
+							OlympiadManager.getInstance().registerNoble(activeChar, CompetitionType.TEAMS);
+						else
+							activeChar.sendMessage("You need "+(100 - activeChar.getPvpKills())+" Pvp's to register in Olympiad");
						break;
					default:
						_log.warning("Olympiad System: Couldnt send packet for request " + val);

  • 0
Posted

if(activeChar.getPvpKills() >= 100)

 

 

So i guess that is the secret for that.

 

If i want to do the same with shops i mean to have 1+ Pvp what i suppose to do?

 

+ if(activeChar.getPvpKills() >= 1)

 

And put it on gm shop's code?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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