Jump to content

crazyarashi

Developer
  • Posts

    763
  • Joined

  • Last visited

  • Days Won

    20

Posts posted by crazyarashi

  1. 1 hour ago, Questune09 said:

    hi good day again rathena i was wondering how to fix this error

     

    [error]: buildin_getvar: 'hp' is a parameter - please use readparam instead

     

     thank you so much

    Hi, Do you have the source of error? :))

  2. ra_temsky,146,135,5	script	Rough Stones Exchanger	756,{
    
    mes "[Leon]";
    mes "Hi adventurer, I'm Leon and im trading";
    mes "a whole ^0055FFOridecon^000000 or ^0055FFElunium^000000";
    mes "For 5 ^0055FFRough Oridecon^000000 or ^0055FFRough Elunium^000000";
    mes "What would you like to exchange today?";
    	switch(select("Rough Elu to Elunium:Rough Ori to Oridecon")) {
    		case 1:
    			set .@i, countitem(757);
    			if (.@i < 5) goto noelu;
    			mes "[Leon]";
    			mes "[How many rough elunium would you like to exchange?]";
    			next;
    			input .@e;
    			if (.@e < 5 || .@e > countitem(757)) {
    				mes "[Leon]";
    				mes "That's an invalid amount of Elunium";
    				mes "The Exchange rate is 5 rough elu to 1 Elunium";
    				close;
    				}
            
    			mes "Are you sure you want to exchange ^0055FF"+(.@e*5)+" Rough Elunium?^000000?";
    			if(select("Yes:No")==2) close;
    			mes "[Leon]";
    			mes "Okay come to me again if you want to exchange";
    			delitem .@i,.@e*5;
    			getitem 985,.@e/5;
    			end;
    		case 2:
    			set .@i, countitem(757);
    			if (.@i < 5) goto noori;
    			mes "[Leon]";
    			mes "[How many rough elunium would you like to exchange?]";
    			next;
    			input .@e;
    			if (.@e < 5 || .@e > countitem(757)*5 ) {
    				mes "[Leon]";
    				mes "That's an invalid amount of Elunium";
    				mes "The Exchange rate is 5 rough elu to 1 Elunium";
    				mes "Make sure you input the right value";
    				close;
    				}
    			mes "Are you sure you want to exchange ^0055FF"+(.@e*5)+" Rough Elunium?^000000?";
    			if(select("Yes:No")==2) close;
    			mes "[Leon]";
    			mes "Okay come to me again if you want to exchange";
    			delitem .@i,.@e*5;
    			getitem 985,.@e;
    			end;
    			}
    
    				
    noori:
    	mes "[Leon]";
    	mes "You Don't have enough rough oridecon to exchange";
    	close;
    	
    noelu:
    	mes "[Leon]";
    	mes "You Dont have enough rough elunium to exchange";
    	close;
    }

     

    4 hours ago, Freya said:

     I would like to ask as to where is your case 2? You also don't have the "notelu".

    Nevermind Fixed it now thank you!

  3. 3 hours ago, Tokei said:

    Well, the input is wrong:

    
    	input .@e;
    	
    	if (.@e < 5 || .@e > countitem(757)) {
    		mes "[Leon]";
    		mes "That's an invalid amount of Elunium";
    		mes "The Exchange rate is 5 rough elu to 1 Elunium";
    		close;
    	}
    	
    	.@e = .@e / 5 * 5;
    	
    	mes "Are you sure you want to exchange ^0055FF" + .@e + " Rough Eluniums?^000000?";
    	
    	if (select("Yes:No") == 2) close;
    	
    	mes "[Leon]";
    	mes "Okay come to me again if you want to exchange";
    	delitem 757, .@e;
    	getitem 985, .@e/5;
    	end;

    And so was the delitem line.

    Sending the full script

  4. 21 minutes ago, Freya said:

    Hello, kindly post your error.

    Hi Im not getting any errors but i think this part is wrong because it's not exchanging anything at all :))

    			mes "Are you sure you want to exchange ^0055FF"+(.@e*5)+" Rough Elunium?^000000?";
    			if(select("Yes:No")==2) close;
    			mes "[Leon]";
    			mes "Okay come to me again if you want to exchange";
    			delitem .@i,.@e*5;
    			getitem 985,.@e/5;
    			end;
    			}

     

  5. Hi  I'm making a rough elunium/oridecon exchanger with an amount input on it and im quite confuse right now anyone can check if this is correct. :))

    prontera,255,55,5	script	Rough Stones Exchanger	756,{
    
    mes "[Leon]";
    mes "Hi adventurer, I'm Leon and im trading";
    mes "a whole ^0055FFOridecon^000000 or ^0055FFElunium^000000";
    mes "For 5 ^0055FFRough Oridecon^000000 or ^0055FFRough Elunium^000000";
    mes "What would you like to exchange today?";
    	switch(select("Rough Elu to Elunium:Rough Ori to Oridecon")) {
    		case 1:
    			set .@i, countitem(757);
    			if (.@i < 5) goto notelu;
    			mes "[Leon]";
    			mes "[How many rough elunium would you like to exchange?]";
    			next;
    			input .@e;
    			if (.@e < 5 || .@e > countitem(757)) {
    				mes "[Leon]";
    				mes "That's an invalid amount of Elunium";
    				mes "The Exchange rate is 5 rough elu to 1 Elunium";
    				close;
    				}
    			mes "Are you sure you want to exchange ^0055FF"+(.@e*5)+" Rough Elunium?^000000?";
    			if(select("Yes:No")==2) close;
    			mes "[Leon]";
    			mes "Okay come to me again if you want to exchange";
    			delitem .@i,.@e*5;
    			getitem 985,.@e/5;
    			end;
    			}

     

  6. I have this item script for autumn headband but it's not working anyone can check it :)))

    { bonus2 bSkillUseSP,SN_WINDWALK,20; bonus bLongAtkRate,5; if(getrefine()>=6) { bonus bAtk,2*(readparam(bInt)/5); } if(getrefine()>=8) { bonus2 bSkillAtk,RA_ARROWSTORM,2*(BaseLevel/10); }

  7. 1 hour ago, Azura Skyy said:

    I think not since the fly wing uses AL_teleport but you can try restricting the skill anyways. The opposite should work though- restricting fly wing but allowing teleport skill. Try playing with it and let me know what works.

    EDIT: Forgot- for disabling teleports as a whole or by types check out the mapflags noreturn and noteleport.

     

    Hope this helps,
    ~Azura Skyy

    It works thank you!

  8. Hi Good Day Rathena is it possible for the client to read multiple iteminfo.lua, I want to add custom items without editing the iteminfo.lua like serveritems.lua
     

    If Possible any guides how? :)) 

    Advanced thanks for the answer /heh/heh 

  9. Yes it would be something like this 

    if getareausers("prontera",<255>,<55>,<200>,<65>) {
    
    and for the coords not so sure but i think it works like this
    
                             y1  ------------------------ y2
                              -                           -
                              -                           -
                              -                           - 
                              -                           - 
                              -                           - 
                              -                           -  
                             x1 --------------------------x2
    
  10. prontera,255,255,5	script	Cash Points Exchanger	758,{
    set .@i, #CASHPOINTS;
    mes "[Cashpoints Exchanger]";
    mes "You have ^0055FF"+.@i+" Cash Points^000000.";
    if (!.@i) { mes "Please come back later."; close; }
    mes "I can convert your ^FF0000Cash Points^000000 To a ^FF0000TCG^000000.";
    next;
    if(select(" - Trade: - ^777777Leave^000000")==2) close;
    mes "[Cashpoints Exchanger]";
    mes "How many would you like to convert?";
    next;
    input .@j;
    mes "[Cashpoints Exchanger]";
    if (.@j < 1 || .@j > #CASHPOINTS) { mes "That's an invalid amount."; close; }
    mes "Are you sure you want to exchange ^0055FF"+.@j+" Cashpoints^000000?";
    if(select(" - Yes: - No")==2) close;
    mes " ";
    set #CASHPOINTS, #CASHPOINTS-(.@j*1);
    getitem 7227, .@j;
    mes "You now have "+countitem(7227)+" TCG.";
    close;
    }

    Cashpoints to TCG
     

    • Upvote 1
  11. Hi Rathena Good Day,

    Im Using Euphy's WOE Controller and i have a question.
    I've search the forums about this and see multiple answers so im not really sure about it
    Should i disable agit_controller.txt and agit_main.txt?
    some say you should just disable the agit_controller.txt and some say you don't need to disable anything.
    Anyone can clarify this for me :))

  12. 57 minutes ago, hazimjauhari90 said:

    this file should be in the sprite folder right? i just extraced.. seems to be the parent folder in between sprite folder & ¸öÅë folder..

    i think the path should be like this. sprite/[parent folder]/¸öÅë/ as i got the missing spr.

    spr2.png

    spr1.png

    Hi i didn't extract the parent folder since there is tons of file in data.grf but ill add a proper directory for it :))

  13. 15 minutes ago, Jey said:

    Oh I just realized:

    *isequippedcnt is for counting cards only. Sorry didn't see it correctly. I thought it will count equipped items by a given nameid.

    So a command to count equipped items is missing. There are now other possible solutions:

    • As I mentioned above change the equip loc of the accessory to either right or left. (easiest method)
    • Write a custom script-command like *countequipped(<itemid>) (most efficient solution)
    • Write a custom script-function by using getinventorylist to count equipped items. Example:
    
    # Careful! Not tested.
    function    script  countequipped {
        getinventorylist();
        .@nameid = getarg(0,0);
        .@count = 0;
        for( .@i = 0; .@i < @inventorylist_count; .@i++) {
            if( @inventorylist_id[.@i] == .@nameid && @inventorylist_equip[.@i] > 0 )
                .@count++;
        }
        return .@count;
    }
    • Use countitem as a workaround for countequipped (Note: every inventory item will be counted)

     

    Example DB entry for Clip:

    
    2607,Clip,Clip,4,30000,,100,,0,,1,0xFFFFFFFF,63,2,136,,0,0,0,{ bonus bMaxSP,10; },{},{} #standard
    
    2607,Clip,Clip,4,30000,,100,,0,,1,0xFFFFFFFF,63,2,136,,0,0,0,{ if( callfunc("countequipped",2607) > 1 ) { bonus bMaxSP,5; } else { bonus bMaxSP,10; } },{},{}

    If you're interested in using the command "countequipped", I'll create a pull request for it as a script command, since I wouldn't recommend the inflationary use of getinventorylist.

    Please do :D

    Thanks for the help :))

×
×
  • Create New...