Jump to content

Loke

Members
  • Posts

    170
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by Loke

  1. 22 hours ago, chadness said:

    hello thanks for your reply can you send a example

        case MO_BODYRELOCATION:
            if(sd && (sd->sc.data[SC_SPIDERWEB] || sd->sc.data[SC_CLOSECONFINE2] || sc->data[SC_ANKLE]))
            if (unit_movepos(src, x, y, 2, 1)) {
            break;
     

    • Upvote 2
  2. 3 hours ago, ittiphol said:

     

    Thank you

    Can you example for me

    Quote

     

    Example : you want to add more broken shell to Permeter just add one more broken shell to its drops.

      - Id: 1314
        AegisName: PERMETER
        Name: Permeter
        Level: 63
        Hp: 8228
        BaseExp: 3756
        JobExp: 1955
        Attack: 943
        Attack2: 1211
        Defense: 46
        MagicDefense: 45
        Str: 69
        Agi: 59
        Vit: 60
        Int: 5
        Dex: 69
        Luk: 100
        AttackRange: 2
        SkillRange: 10
        ChaseRange: 12
        Size: Medium
        Race: Brute
        Element: Neutral
        ElementLevel: 2
        WalkSpeed: 250
        AttackDelay: 1100
        AttackMotion: 483
        DamageMotion: 528
        Ai: 17
        Drops:

          - Item: Turtle_Shell
            Rate: 4413

          - Item: Turtle_Shell
            Rate: 4413

          - Item: Broken_Shell
            Rate: 45
          - Item: Wooden_Block
            Rate: 1240
          - Item: Red_Herb
            Rate: 2450
          - Item: Zargon
            Rate: 1240
          - Item: Fruit_Of_Mastela
            Rate: 25
          - Item: Anodyne
            Rate: 1
          - Item: Permeter_Card
            Rate: 1
            StealProtected: true

     


     

    • Upvote 1
  3. On 10/22/2019 at 12:24 PM, crazyarashi said:
    -	script	mvp_point	-1,{
    	end;
    
    OnNPCKillEvent:
    	if(!getmonsterinfo(killedrid,MOB_MVPEXP) || inarray(.mvp_point, killedrid) == -1) end;
    	[email protected] = inarray(.mvp_point, killedrid) + 1;
    	if(!getcharid(1)){
    		#MVP_POINT += .mvp_point[[email protected]];
    		dispbottom "You got " + .mvp_point[[email protected]] + " MVP Points for killing " + getmonsterinfo(killedrid,MOB_NAME) +".";
    	} else {
    		getmapxy([email protected]$,[email protected],[email protected],BL_PC);
    		getpartymember getcharid(1),1;
    		getpartymember getcharid(1),2;
    		for([email protected] = 0; [email protected] < [email protected]; [email protected]++){
    			if(attachrid([email protected][[email protected]])){
    				if(strcharinfo(3) == [email protected]$ && isloggedin([email protected][[email protected]], [email protected][[email protected]])){
    					[email protected]_id[getarraysize([email protected]_id)] =  [email protected][[email protected]];
    				}
    				detachrid;
    			}
    		}
    		[email protected] = getarraysize([email protected]_id);
    		if([email protected] == 1){
    			#MVP_POINT += .mvp_point[[email protected]];
    			dispbottom "You got " + .mvp_point[[email protected]] + " MVP Points for killing " + getmonsterinfo(killedrid,MOB_NAME) +".";
    			end;
    		}
    		if([email protected] > .mvp_point[[email protected]] || [email protected] == .mvp_point[[email protected]]){
    			[email protected] = 1;
    		} else {
    			[email protected] = (.mvp_point[[email protected]]/[email protected]);
    		}
    		for([email protected] = 0;  [email protected] < [email protected]; [email protected]++){
    			setd "#MVP_POINT",getd("#MVP_POINT") + [email protected],[email protected]_id[[email protected]];
    			dispbottom "You got " + .mvp_point[[email protected]] + " MVP Points for killing " + getmonsterinfo(killedrid,MOB_NAME) +".",0x00FF00,[email protected]_id[[email protected]];
    		}			
    	}		
    end;
    	
    OnInit:
    	setarray .mvp_point, //= MVP ID, Points
    	1039,10,
    	1046,20,
    	1112,30;
    end;
    }

    I haven't tested it yet. Just add all your MVP ID, Point on the array.

    How about adding a map. Example you can get mvp points in Bossnia level 1 to level 4 only.

  4. I want to give points for each mvp killed in desired map. Thanks in advance.

    //================== Ragnarok======================
    
    //==================Bossnia Points==================
    
    -    script    Point_Bossnia    -1,{
        OnNPCKillEvent:
    
            if ( getmonsterinfo( killedrid, MOB_MVPEXP ) && (strcharinfo(3) == "bossnia_01" || strcharinfo(3) == "bossnia_02" || strcharinfo(3) == "bossnia_03 || strcharinfo(3) == "bossnia_04")) {
            set #BOSSNIAPOINTS, #BOSSNIAPOINTS + 1;
            dispbottom "You gained "+ #BOSSNIAPOINTS +" Bossnia Points.";
            end;
            }
    
        OnCheckPoint:
            dispbottom "You currently have " + #BOSSNIAPOINTS + " Bossnia Points.";
            end;
        OnInit:
            bindatcmd "bpoints", strnpcinfo(0) + "::OnCheckPoint";
            end;
    }

     

  5. On 2/9/2021 at 9:00 PM, BeWan said:
    Jobs:
          Assassin: true
    
          Thief: false
    

    try

    I did that already but still i can equip the weapon using thief class. Btw thanks for the reply.

  6. 1 hour ago, EIysium said:

    Can you show me the katar code on item_db?

    The code by default is 0x00001000

    or if you are using new db should be:

      - Id: 1250
        AegisName: Jur
        Name: Jur
        Type: Weapon
        SubType: Katar
        Buy: 19500
        Weight: 800
        Attack: 125
        Range: 1
        Slots: 2
        Jobs:
          Assassin: true
        Locations:
          Both_Hand: true
        WeaponLevel: 2
        EquipLevelMin: 18
        Refineable: true

     

     -Id: 1264
        AegisName: Various_Jur
        Name: Specialty Jur
        Type: Weapon
        SubType: Katar
        Buy: 20
        Weight: 800
        Attack: 90
        Range: 1
        Jobs:
          Assassin: true
        Slots: 4
        Locations:
          Right_Hand: true
          Left_Hand: true
        WeaponLevel: 1
        EquipLevelMin: 1
        Refineable: true
        Script: |
          bonus2 bAddEff2,Eff_Bleeding,10;

  7. 22 hours ago, Froost said:
    prontera,20,60,0    shop   GoldVending#    810,969:500000

    Gold sell 500k

    Sorry but what im talking about is for Vending Skill, But thanks for your reply.

  8. Why no prize for winning guild?

    // Combine values as needed (e.g. 1|8 = 1+8 = 9).
        set .Options, 1|2;

        // Rewards per castle.
        //   setarray .reward_id[0],     <itemID>{,<itemID>,...}
        //   setarray .reward_amount[0], <amount>{,<amount>,...}
        setarray .reward_id[0],14003;
        setarray .reward_amount[0],1;
     

    It should be all players of the winning guild will get 1x of ESB via RoDex right? but no prize given after WOE.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.