Jump to content

Question

5 answers to this question

Recommended Posts

  • 0
Posted

Open TvT.java and search for addItem(), below that, add another addItem() method with whatever you wish.

  • 0
Posted (edited)

i opened tvt.java i searched for additem() but doesn't exist so i searched for additem and i found this:

 

player.addItem(_eventName+" Event: " + _eventName, _rewardId, _rewardAmount, player, true);

what should i put more so player will get more rewards?

 

i searched little more and i am sure that i must do some changes here so i put more rewards but i dont know what i must put....

 

/**
* Gets the _reward id.
*
* @return the _rewardId
*/
public static int get_rewardId()
{
return _rewardId;
}
 
/**
* Set_reward id.
*
* @param _rewardId the _rewardId to set
* @return true, if successful
*/
public static boolean set_rewardId(int _rewardId)
{
if(!is_inProgress()){
TvT._rewardId = _rewardId;
return true;
}
return false;
}
 
/**
* Gets the _reward amount.
*
* @return the _rewardAmount
*/
public static int get_rewardAmount()
{
return _rewardAmount;
}
 
/**
* Set_reward amount.
*
* @param _rewardAmount the _rewardAmount to set
* @return true, if successful
*/
public static boolean set_rewardAmount(int _rewardAmount)
{
if(!is_inProgress()){
TvT._rewardAmount = _rewardAmount;
return true;
}
return false;
}
Edited by TraineeDreamer
  • 0
Posted

can u help me ppl?

U already found it -> "player.addItem(_eventName+" Event: " + _eventName, _rewardId, _rewardAmount, player, true);"

Make a new line after that one like "player.addItem(_eventName+" Event: " + _eventName, 57, 100, player, true);" -> 57 adena id, 100 adena amount

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