Jump to content

HeikoS

Members
  • Posts

    22
  • Joined

  • Last visited

Posts posted by HeikoS

  1. Syntax

    • bindatcmd "command","<NPC object name>::<event label>"{,<atcommand level>,<charcommand level>};

     

    I think the usage of (gm)level is outdated and we now will use group_id instead of level.

    How can I restrict the usage of an atcommand (with bindatcmd) to an special group_id?

     

    For example there is a group_id 10 which should be allowed to use the atcommand, but a group_id 20 should not be allowed to use the atcommand. When using

    bindatcmd "test","acmd_test::OnAtcommand",10; 
    

    this atcommand can be used by chars with group_id 10 and 20. A char with group_id 20 should not be allowed to use the command.

  2. Perhaps it can be configured similar to the key "log_filter" in conf/log_athena.conf.

    For example:

    stackable_unique_id: 64   = use unique_id for cards (stackable item)

    But always this configuration has to set carefully because of perfomance issues. :-)

  3. Hi,

    i want to have a mob, that will get no damage by skills.

    I tried this: http://www.eathena.w...ndpost&p=927155

    And I tried using parts of the function battle_calc_gvg_damage (in src/map/battle.c):

    int battle_calc_damage(struct block_list *src,struct block_list *bl,struct Damage *d,int damage,int skill_num,int skill_lv)
    {
    struct map_session_data *sd = NULL;
    struct status_change *sc;
    struct status_change_entry *sce;
    int div_ = d->div_, flag = d->flag;
    //## Mob-Skillimmune START
    int class_ = status_get_class(bl);
    //## Mob-Skillimmune END
    	nullpo_ret(bl);
    	if( !damage )
    			return 0;
    //## Mob-Skillimmune START
      if (class_ == 2993 && flag&BF_SKILL)
    		  return 0;
    //## Mob-Skillimmune END
    if( mob_ksprotected(src, bl) )
     return 0;
    

    But the special mob (ID 2993) gets still damage from skills like Jupitel Thunder.

    Does anyone have a idea to make this mob immune to all skills?

  4. Yes, it is an example. The other queries will be similar.

    I did`t finish the complete script right now. It will show the items in the different places separatly, not all together. But you can show, where the items are.

    My queries will show more informations about the owner and the item itself (refine, cards, etc.)

    It was just an suggestion. Use the queries which more fits your desires. ^^

  5. There a two more places, were items can be: auction and guild_storage.

    Also it will be possible that cards are in equipment. I will check every table with a single query.

    For example (inventory):

    SELECT `char`.name, nameid, amount, refine, attribute, card0, card1, card2, card3
    FROM `inventory` INNER JOIN `char` ON (`inventory`.char_id = `char`.char_id)
    WHERE `nameid` = '/*[VARIABLE]*/' OR card0 = '/*[VARIABLE]*/' OR card1 = '/*[VARIABLE]*/'
    OR card2 = '/*[VARIABLE]*/' OR card3 = '/*[VARIABLE]*/' ORDER BY `char`.`name` ASC
    

    Replace /*[VARIABLE]*/ with the item-id.

  6. I think that the "swab the deck" quest is from kRO and the corresponding quest from iRO is "suspicious beach".

    See https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/db/pet_db.txt

    // Brasilis Quest - Suspicious Beach [uNHATCHABLE]
    2057,E_CRAMP,Strange Cramp,12408,6221,0,0,0,0,0,0,0,0,50,0,0,0,350,400,800,{},{} // kRO version
    2081,E_HYDRA,Strange Hydra,12408,6221,0,0,0,0,0,0,0,0,50,0,0,0,350,400,800,{},{} // iRO/cRO version
    

    Nevermind, i have changed the pet_db and now using both quests on our server, with little changes and translations. ^^

  7. Hm. I noticed, that there are problems with the IPN in sandbox mode.

    So I tested the donation with paypal live enviroment.

    Now I got the IPN and the table cp_txnlog was filled. I made 2 donations, which are both completed at paypal.

    In cp_txnlog both transaction have 'payment_status' 'Completed', but the field 'credits' is empty respectively '0'.

    So I will be shown the transactions in ?module=donate&action=history as 'completed' AND 'failed'. And no credits are on the account.

    I searched the source code, but did not found the part where the field 'credit' is set.

    Error found and fixed:

    /lib/Flux/PaymentNotifyRequest.php, line 179

    replace:

      $sql = "SELECT COUNT(account_id) AS acc_id_count FROM {$servGroup->loginDatabase}.login WHERE sex != 'S' AND level >= 0 AND account_id = ?";
    

    with:

      $sql = "SELECT COUNT(account_id) AS acc_id_count FROM {$servGroup->loginDatabase}.login WHERE sex != 'S' AND group_id >= 0 AND account_id = ?";
    

    Thread may be marked as "solved". :-)

    • Upvote 2
  8. Hi there,

    i have troubles using paypal donation in our flux cp (last version from CalciumKid).

    Testings were done in the paypal sandbox mode.

    In the paypal business account the IPN-URL is set correctly to http://www.EXAMPLE.com/FLUXPATH/?module=donate&action=notify

    For testing purposes I set the access.php als followed:

    'donate'    => array(
    				    'index'    => AccountLevel::ADMIN,  //ANYONE
    				    'notify'   => AccountLevel::ANYONE,
    				    'update'   => AccountLevel::ADMIN, //ANYONE,
    				    'complete' => AccountLevel::ADMIN,  //ANYONE
    				    'history'  => AccountLevel::ADMIN,  //NORMAL
    				    'trusted'  => AccountLevel::ADMIN  //NORMAL
    

    My problem: I can donate (using ADMIN-account and paypal-sandbox-customer), I will be forwarded to paypal, after paypal I will be forwarded to the page "Donation complete" in flux, but nothing else happens. No credit, no entries in ?module=donate&action=history, no entries in ?module=cplog&action=paypal, no entries in cp_txnlog.

    Any suggestions, where to search an error?

  9. Hi JayPee,

    after getting your last repo and updating the fluxcp itself the v2p-addons works fine with the default theme.

    We use an own theme, so i merged all differences between the default theme of my old flux cp and the new flux cp (from CalciumKids new repo) into our theme-files.

    First the was a problem (Page not found), but i have forgotten to copy the files from FLUXPATH/addons/voteforpoints/themes/default to FLUXPATH/addons/voteforpoints/themes/OWNTHEME.

    Just as a hint for other users, that will use the v2p-addon with own themes. :-)

    Thanks a lot, HeikoS

  10. We have still problems with installing this addon. Flux CP self works fine.

    First i have forgotten to put the files in the addons subdirectory. I put them in the accourding directories. SQL-Files are imported to the database.

    Access levels are set to ADMIN, i am logged in as ADMIN, but i cant see the menu items, only the menu heading. Trying the url /?module=voteforpoints leads in an error message page Unauthorized - You are unauthorized to view this page. <a href="%s">Redirecting…</a>

×
×
  • Create New...