Jump to content

hadji22

Members
  • Posts

    35
  • Joined

  • Last visited

Posts posted by hadji22

  1. 5 minutes ago, Virtue said:

    Definitely. You can use the one below:

    *readparam(<parameter number>{,"<character name>"})
    *readparam(<parameter number>{,<char_id>})
    
    This function will return the specified stat of the invoking character, or, if a
    character name or character id is specified, of that player. The stat can either
    be a number or parameter name, defined in 'src/map/script_constants.hpp'.
    
    Some example parameters:
    
    StatusPoint, BaseLevel, SkillPoint, Class, Upper, Zeny, Sex, Weight, MaxWeight,
    JobLevel, BaseExp, JobExp, NextBaseExp, NextJobExp, Hp, MaxHp, Sp, MaxSp,
    BaseJob, Karma, Manner, bVit, bDex, bAgi, bStr, bInt, bLuk, Ap, MaxAp
    
    All of these also behave as variables, but don't expect to be able to just 'set'
    them - some will not work for various internal reasons.
    
    Example 1:
    
        // Returns how many status points you haven't spent yet.
        mes "Unused status points: " + readparam(9);
    
    Using this particular information as a function call is not required. Typing this
    will return the same result:
    
        mes "Unused status points: " + StatusPoint;
    
    Example 2:
    
    You can also use this command to get stat values.
    
        if (readparam(bVit) > 77)
            mes "Only people with over 77 Vit are reading this!";

    https://github.com/rathena/rathena/blob/b56f11207c3cb5337dca07bb910ba85316c84939/doc/script_commands.txt#L2445

    Thank you @Virtue, big help man.

  2. 21 minutes ago, mrfizi said:

    If you're using latest rAthena, edit the duration in your db/pre-re/item_db_usable.yml

     

    
     - Id: 607
        AegisName: Yggdrasilberry
        Name: Yggdrasil Berry
        Type: Healing
        Buy: 5000
        Weight: 300
        Flags:
          BuyingStore: true
        Delay:
          Duration: 5000
          Status: Reuse_Limit_F
        Script: |
          percentheal 100,100;

     

    how to determine my server trunk version?, im still using .txt

    ps. my trunk file is not latest

  3. Hello, we're attempting to put a delay on the yggdrasil berry, but the one we placed in item_delay.txt doesn't work, we've tried db/import and db/pre-re, and we've also attempted @reloaditemdb, but the delay still doesn't work.

    Do you have any ideas how to solve item_delay.txt?

    // Item Delay Database
    //
    // Structure of Database:
    // Item ID,Delay in Milliseconds
    //
    // NOTE:
    // There is a max concurrent number of entries set in src/map/itemdb.h as MAX_ITEMDELAYS.
    607,1500,SC_REUSE_LIMIT_F    //Yggdrasil_Berry

  4. 3 hours ago, Patskie said:

    Try below

    
    prontera,150,150,6	script	Gold Room Warper	100,{
    	warp "ordeal_3-1", 149, 149;
    	end;
    
    	OnPCDieEvent:
    		if (strcharinfo(3) != "ordeal_3-1" || !countitem(.item) || killerrid == getcharid(3)) end;
    		getmapxy .@map$, .@x, .@y;
    		.@i = countitem(.item) / 10;
    		if (!.@i) end;
    		delitem .item, .@i;
    		makeitem .item, .@i, .@map$, .@x, .@y;
    		end;
    	
    	OnInit:
    		.item = 969; // Gold
    		end;
    }
    
    ordeal_3-1,0,0	monster	Dokebi	1110,50,5000

     

    Oh thank you, it's working perfectly

×
×
  • Create New...