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

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