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

You can check how does Premium Account work .. and edit it to hero status.

 

Its already shated, check Here.

  • 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?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock