Jump to content

ScarrFace

Members
  • Posts

    66
  • Joined

  • Last visited

Posts posted by ScarrFace

  1. Anyone can create daily reward / attendance that will back to day 1 if you fail to log in.

    for example:
    you log in day 1 to day 14 then day 15 you fail to log in. When you log in again, it will revert or reset to day 1.

    with image and need 1 hour playing time to gain the reward. bonus if there's an option for IP based or UNIQUE ID based ( gepard )

  2. This SL_Gunner if condition not working.
    if (sd && sd->sc.data[SC_SPIRIT] && sd->sc.data[SC_SPIRIT]->val2 == SL_GUNNER)

    i already added SL_GUNNER in status.cpp

    					case SL_WIZARD:
    						target_class = MAPID_WIZARD;
    						break;
    					case SL_GUNNER:
    						target_class = MAPID_GUNSLINGER;
    						break;	
    					case SL_HIGH:
    						if( sd->status.base_level < 70 ){
    							return 0;
    						}

    any step by step to add SL_GUNNER in soul link?

  3. On 5/18/2019 at 11:16 AM, anacondaq said:

    Hi, maybe you did not applied properly the diff? 

    osuRPaZ.png

    Make sure that you have edited next files:

    src/custom/battle_config_init.inc

    // Cashshop UI item currency shop:
    { "cashshop_currency_itemid",                     &battle_config.cashshop_currency_itemid,                  0,      0,      MAX_ITEMID,              },

    src/custom/battle_config_struct.inc

    // Cashshop currency ItemID shop
    int cashshop_currency_itemid;

    conf/battle/items.conf

    // Instead of Cashpoints in Cashshop UI (interface)
    // Use ITEMID with ID below. The item must exists in the game
    // The item must have tradable flags, etc like a normal item
    // Instead of cashpoints will be consumed the item from players inventory
    // Set it to 0 if you wish completely disable the system.
    // Max ID = 65k
    cashshop_currency_itemid: 505

    src/map/cashshop.cpp

    Find (inside function cashshop_buylist):

    	if(pc_paycash( sd, totalcash, kafrapoints, LOG_TYPE_CASH ) <= 0){
    		clif_cashshop_result( sd, 0, CASHSHOP_RESULT_ERROR_SHORTTAGE_CASH );
    		return false;

    Replace to:

    	// Custom code for using instead of cashpoints itemID as a currency in cashshop UI shop.
    	if(battle_config.cashshop_currency_itemid)
    	{
    		struct item_data *id_cash_currency = itemdb_search(battle_config.cashshop_currency_itemid);
    		if (!id_cash_currency)
    		{
    			clif_cashshop_result(sd, 0, CASHSHOP_RESULT_ERROR_SHORTTAGE_CASH);
    			ShowError("cashshop_currency_itemid: %d itemID not exists in the game, try another one.\n", battle_config.cashshop_currency_itemid);
    			return false;
    		}
    		int item_idx = pc_search_inventory(sd, battle_config.cashshop_currency_itemid);
    		if (item_idx < 0 || pc_delitem(sd, item_idx, totalcash, 0, 0, LOG_TYPE_CONSUME))
    		{
    			clif_cashshop_result(sd, 0, CASHSHOP_RESULT_ERROR_SHORTTAGE_CASH);
    			return false;
    		}
    	}
    	else // Original Function
    	{
    		if (pc_paycash(sd, totalcash, kafrapoints, LOG_TYPE_CASH) <= 0)
    		{
    			clif_cashshop_result(sd, 0, CASHSHOP_RESULT_ERROR_SHORTTAGE_CASH);
    			return false;
    		}

    Recompile.

    Tested with latest github hash

    @anacondaq there's a problem. it still counts the cash points in the interface + it still counts the cash points when buying. example is when you have 100 token and 0 cash points error message show but if you have 100 cash points and 100 token and if you buy items the deduction is correct. how to update the counts in interface is the new item id currency ? thank you! 

  4. On 7/4/2020 at 11:45 AM, noobzter003 said:
    
    I was able to make this source work in latest git of rathena, 
    

    but i have one problem, how to make this PVP with user counting instead of PK.

    i want something like this, tq

     

    do you mind to share your diff?

  5. 5 hours ago, Akbare said:

    just upload your webfile in www folder

    and open your browser to access link

    i did but nothing happen

    patcher works but when i upload website files nothing happen. and what to put on nameservers on domain to work or to read the vps platform?

×
×
  • Create New...