Jump to content
  • 0

[Request] hero for a week or a month


Question

Posted

Hello again guys.

 

I apply Coyote code for making a player "hero" with skills untill restart,by hitting one button to a specific npc.

 

I just want when a player try to hit "Hero" button ,need to have one coin of my choice.

How i will do that?

 

Recommended Posts

  • 0
Posted

Hmm i forgot smth to refer :) .

 

Ok with core.....but now how i will connect it with the button that players need to press ingame in order to get hero status and skills until restart.

 

here is the line for the html :

 

<tr><a action="bypass -h npc_%objectId%_sethero">Hero Function.</a></tr><br>

 

 

 

**** ok ok i find it i am sorry :D .

One last question which is related with this .

Can i make the player become hero for 10 days or 20 days or 30 days etc ?

  • 0
Posted

onBypassFeedback method

 

else if (command.startsWith("ExitRift"))

            {

                if(player.isInParty() && player.getParty().isInDimensionalRift())

                {

                    player.getParty().getDimensionalRift().manualExitRift(player, this);

                }

                else

                {

                    DimensionalRiftManager.getInstance().handleCheat(player, this);

                }

        }

 

This is example.

  • 0
Posted

Can someone give me the code or tell me what to add and where ? :)

ALSO addtzu told me that i can do it from mysql but i dont know how. ^^

I just want to keep hero status for a week or a motnh ,not until rr.

 

Moreover i am thinking to add this : every 5-10 pvps then he can be hero until die.

 

Can i do both of them or i will have errors ?

  • 0
Posted

maybe is there any other way to make it more easier ?

:) i am not a developper but i am trying from the simple things.

Someone told me that it can be done and from mysql.

Another way more easier from core?

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