Jump to content

crazyarashi

Developer
  • Posts

    776
  • Joined

  • Last visited

  • Days Won

    22

Posts posted by crazyarashi

  1. 1 hour ago, quakeman00 said:

    installed the latest version of azzyai from the website but ive been using it vanilla and modified and it dosent work , the homun just follow me and does nothing and let itself being killed "and its an evolved Vanilmirth "the melting one, not the jelly" tested it in multiple dungeons , it does absolutely nothing unless i manually ask it to do it , i did /hoai on and off and reloading the game , nothing seems to work

     

    ive seent hat issue alot with the current version but eveyrone keep saying the found the issue or we have to "DOWNLOAD" thier fix but nobody talk what the fix is, anyone would care to elaborate or explain what im missing to get it to act like its suposed to "roaming in a circle , killing everything and spamming spells"

    Did you try to make standby while /hoai is activated? :))

  2. 23 minutes ago, Jey said:

    Try to avoid using freeloop. The infinity loop is caused by a wrong condition:

    
    if ( getgmlevel() < 100 && !checkvending() ) {
    	DetachRID();
    	continue;
    }

    This will detach every non GM (needs at least level 100) and non vending player. Better would be:

    
    if ( getgmlevel() > 0 || // ignores GMs
    	 checkvending()   || // ignores Vender
         checkweight(32000,1) == 0 || // Checkweight failed
    	 checkidle() > 60 ) { // ignores AFK-Player (should also include venders)

    I just had a look in an own script. It's pretty much the same, but differs from the time (not every hour at minute zero). And it just waits ten seconds, if it fails.

    
    
    
    OnMinute00:
    //Damit das ein wenig interessanter wird, wird der Coin nicht genau zur vollen
    //Stunde ausgeteilt, sondern irgendwann innerhalb dieser Stunde.
    	stopnpctimer;
    	initnpctimer;
    	setnpctimer(rand(0,3540000));
    	end;
    OnTimer3545000:
    	stopnpctimer;
    	query_sql "SELECT `account_id` FROM `char` WHERE `online` = '1' ORDER BY RAND() LIMIT 0,1",.@accid;
    	if( getarraysize(.@accid) != 1 ) end;
    	attachrid .@accid[0]; //Player attached
    	if( checkweight(32000,1) == 0 || checkidle() > 60 || getgmlevel() > 0 )
    	{
    		setnpctimer(3535000); //Evtl. Wird in 10 Sekunden jemand gefunden, der nicht afk ist.
    		startnpctimer;
    		end;
    	}
    	getitem 32000,1;
    	switch(rand(17)) {
    		case 0: announce "["+strcharinfo(0)+"] ist ein richtiger Glückspilz und findet einen Coin hinter "+((Sex)?"seinem":"ihrem")+" Sofa.",b_all; break;
    // [...]

    (Sorry in German, but you'll get the point)

    i see thanks for the info :))

  3. Try Using Freeloop something like this

    -	script	AutoPickEvent	-1,{
     
    OnMinute00: 
    	freeloop(1);
    	{
    	query_sql "select account_id from `char` where online = 1 order by rand() limit 1", .@aid;
    	attachrid .@aid;
    	if ( getgmlevel() < 100 && !checkvending() ) {
    	DetachRID();
    	continue;
      	}
    	announce strcharinfo(0) +" won 1 Hourly Coin in Lucky Pick Event.",0,0x00FF00;
    	getitem 31060,1;
    	break;
    	}
    	freeloop(0);
    	end;
    }

     

    • Upvote 1
  4. 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? :))

  5. 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!

  6. 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

  7. 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;
    			}

     

  8. 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;
    			}

     

  9. 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); }

  10. 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!

  11. 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 

×
×
  • Create New...