Jump to content

Elsa Mist

Members
  • Posts

    387
  • Joined

  • Last visited

  • Days Won

    6

Posts posted by Elsa Mist

  1.  

    ngarep script WOE TEnya ada sekalian rathena update mapflagnya :P

    sbnernya sih bisa tigl copas + edit dikit script WOE yg udah ada, tigl tambahin mapflag utk TE, trus label AgitTE. tp males nyobanya. haha

     

     

    Can you do that Cydh?  /gawi

  2. -	script	dualbgclientkicker	-1,{
    OnPCLoadMapEvent:
    	set .@charmap$, strcharinfo(3);
    	if(!compare(.tmp$,.@charmap$)) end;
    	set .@len, query_sql("select account_id from `char` right join login on login.account_id = `char`.account_id where `char`.online = 1 and login.last_mac = '"+ getcharip() +"'",.@a );
    	if(.@len-1) {
    		for(set(.@d,0);.@d<.@len;set(.@d,.@d+1)) {
    			getmapxy(.@map$,.@x,.@y,0,rid2name(.@a[.@d]));
    			if(.@charmap$==.@map$&&rid2name(.@a[.@d])!=strcharinfo(0)) {
    				dispbottom "Dual is not allowed in Battleground.";
    				warp "pronter",0,0;
    			}
    		}
    	}
    	end;
    	
    OnInit:
    	setarray   .maps$  ,	"BG map 1", "BG map 2", "BG map 3", "BG map 4"; // add more mpas if you have more BG maps
    	set        .lens   ,	getarraysize(.maps$)                                   ;
    	for(set(.a,0);.a<.lens;set(.a,.a+1)) {
    		setmapflag .maps$[.a],	mf_loadevent ;
    		set .tmp$  ,.tmp$+.maps$[.a]+",";
    	}
    }
    

    This script is not mine, but use it 3+ years ago save on my external storage. not tested yet with current git.

  3. Try this, modified with remove changelook and afk timeout.

     

    atcommand.c

    #include "../custom/atcommand.inc"
    
    +/*==========================================
    +* @afk
    +*------------------------------------------*/
    +ACMD_FUNC(afk) {
    + 
    +        nullpo_retr(-1, sd);
    +				
    +				if(sd->bl.m == map_mapname2mapid("prontera")) {
    +				clif_displaymessage(fd, "@afk is not allowed on this map.");
    +				return 0;
    +				}
    +				
    +				if( pc_isdead(sd) ) {
    +				clif_displaymessage(fd, "Cannot @afk if you are dead.");
    +				return -1;
    +				}
    +
    +                if( map[sd->bl.m].flag.autotrade == battle_config.autotrade_mapflag )
    +                {
    +
    +                if(map[sd->bl.m].flag.pvp  || map[sd->bl.m].flag.gvg){
    +                clif_displaymessage(fd, "You may not use the @afk maps PVP or GVG.");
    +                return -1;}
    +
    +                        sd->state.autotrade = 1;
    +                        sd->state.monster_ignore = 1;
    +			 			 pc_setsit(sd);
    +                        skill_sit(sd,1);
    +                        clif_sitting(&sd->bl);
    +                        clif_specialeffect(&sd->bl, 234,AREA);                       
    +                        clif_authfail_fd(fd, 15);
    +                } else
    +                        clif_displaymessage(fd, "@afk is not allowed on this map.");
    +        return 0;
    +}
    +
     		ACMD_DEF(channel),
     		ACMD_DEF(fontcolor),
     		ACMD_DEF(langtype),
    +		ACMD_DEF(afk),
    #ifdef VIP_ENABLE
    		ACMD_DEF(vip),
    		ACMD_DEF(showrate),
  4.  

    Hey guys, s I have this sets which are the same but in different colors, I'm trying to make a script that lets you change the color (which is a different item) for ex: if I have the black set equipped and i use the command it would let me get this menu and change to other color... 

     

    - script Perfect Set -1,{
    
    
    
    
    OnInit:
    bindatcmd("pset", strnpcinfo(3) +"::OnPSET");
    end;
    
    
    OnPSET:
    if (@pset) {
    set @pset, 0;
    menuq:
    mes "[NightmareRO]";
    mes "Welcome I have Special items for those who have donated to the server.";
    next;
    mes "[NightmareRO]";
    mes "What do you want to see??";
    next;
    menu "Perfect Set",qs,"Exit",exit;
    
    
    exit:
    mes "[NightmareRO]";
    mes "Have a great day, Bye";
    close;
    
    
    norew:
    mes "[Hombre]";
    mes "You dont have enough ^0000FFProof of donation^000000.";
    close;
    
    
    ///////////////////COMIENZO JOBS////////////////////////////////////
    qs1:
    next;
    menu "Periwinkle Iris Set +10(Int)",q1,"Azure Iris Set +10(Luk)",q2,"Ebony Iris Set +10(Dex)",q3,"Maize Iris Set +10(Agi)",q4,"Folly Iris Set +10(Str)",q5,"Exit",exit;    
    
    
    
    
    end;
    }
    }

    I made this but is not completed and I dont know how to make the if equipped part....

     

    setarray .@card[1], getequipcardid ( .slot, 0 ), getequipcardid ( .slot, 1 ), getequipcardid ( .slot, 2 ), getequipcardid ( .slot, 3 );
    set .@refine, getequiprefinerycnt ( .slot );
    delitem .@e, 1 ;
    getitem2 getd ( ".a1"+ ( .@w + 1 ) +"_"+ ( .@id + 1 ) ) , 1, 1, .@refine, 0, .@card[1], .@card[2], .@card[3], .@card[4] ;
    equip getd ( ".a1"+ ( .@w + 1 ) +"_"+ ( .@id + 1 ) ) ;
    

    this is for you to auto equip and replace the old armor. You can try it as base.

  5. https://github.com/rathena/FluxCP/blob/master/themes/default/item/index.php

     

    remove this line...

    <label for="equip_loc">Equip Locations:</label>
    		<select name="equip_loc">
    			<option value="-1"<?php if (($equip_loc=$params->get('equip_loc')) === '-1') echo ' selected="selected"' ?>>
    				Any
    			</option>
    			<?php foreach (Flux::config('EquipLocationCombinations')->toArray() as $locId => $locName): ?>
    				<option value="<?php echo $locId ?>"<?php if (($equip_loc=$params->get('equip_loc')) === strval($locId)) echo ' selected="selected"' ?>>
    					<?php echo htmlspecialchars($locName) ?>
    				</option>
    			<?php endforeach ?>
    		</select>
    	</p>
    	<p>
    		<label for="npc_buy">NPC Buy:</label>
    		<select name="npc_buy_op">
    			<option value="eq"<?php if (($npc_buy_op=$params->get('npc_buy_op')) == 'eq') echo ' selected="selected"' ?>>is equal to</option>
    			<option value="gt"<?php if ($npc_buy_op == 'gt') echo ' selected="selected"' ?>>is greater than</option>
    			<option value="lt"<?php if ($npc_buy_op == 'lt') echo ' selected="selected"' ?>>is less than</option>
    		</select>
    		<input type="text" name="npc_buy" id="npc_buy" value="<?php echo htmlspecialchars($params->get('npc_buy')) ?>" />
    		...
    		<label for="npc_sell">NPC Sell:</label>
    		<select name="npc_sell_op">
    			<option value="eq"<?php if (($npc_sell_op=$params->get('npc_sell_op')) == 'eq') echo ' selected="selected"' ?>>is equal to</option>
    			<option value="gt"<?php if ($npc_sell_op == 'gt') echo ' selected="selected"' ?>>is greater than</option>
    			<option value="lt"<?php if ($npc_sell_op == 'lt') echo ' selected="selected"' ?>>is less than</option>
    		</select>
    		<input type="text" name="npc_sell" id="npc_sell" value="<?php echo htmlspecialchars($params->get('npc_sell')) ?>" />
    		...
    		<label for="weight">Weight:</label>
    		<select name="weight_op">
    			<option value="eq"<?php if (($weight_op=$params->get('weight_op')) == 'eq') echo ' selected="selected"' ?>>is equal to</option>
    			<option value="gt"<?php if ($weight_op == 'gt') echo ' selected="selected"' ?>>is greater than</option>
    			<option value="lt"<?php if ($weight_op == 'lt') echo ' selected="selected"' ?>>is less than</option>
    		</select>
    		<input type="text" name="weight" id="weight" value="<?php echo htmlspecialchars($params->get('weight')) ?>" />
    	</p>
    	<p>
    		<label for="range">Range:</label>
    		<select name="range_op">
    			<option value="eq"<?php if (($range_op=$params->get('range_op')) == 'eq') echo ' selected="selected"' ?>>is equal to</option>
    			<option value="gt"<?php if ($range_op == 'gt') echo ' selected="selected"' ?>>is greater than</option>
    			<option value="lt"<?php if ($range_op == 'lt') echo ' selected="selected"' ?>>is less than</option>
    		</select>
    		<input type="text" name="range" id="range" value="<?php echo htmlspecialchars($params->get('range')) ?>" />
    		...
    		<label for="slots">Slots:</label>
    		<select name="slots_op">
    			<option value="eq"<?php if (($slots_op=$params->get('slots_op')) == 'eq') echo ' selected="selected"' ?>>is equal to</option>
    			<option value="gt"<?php if ($slots_op == 'gt') echo ' selected="selected"' ?>>is greater than</option>
    			<option value="lt"<?php if ($slots_op == 'lt') echo ' selected="selected"' ?>>is less than</option>
    		</select>
    		<input type="text" name="slots" id="slots" value="<?php echo htmlspecialchars($params->get('slots')) ?>" />
    		...
    		<label for="defense">Defense:</label>
    		<select name="defense_op">
    			<option value="eq"<?php if (($defense_op=$params->get('defense_op')) == 'eq') echo ' selected="selected"' ?>>is equal to</option>
    			<option value="gt"<?php if ($defense_op == 'gt') echo ' selected="selected"' ?>>is greater than</option>
    			<option value="lt"<?php if ($defense_op == 'lt') echo ' selected="selected"' ?>>is less than</option>
    		</select>
    		<input type="text" name="defense" id="defense" value="<?php echo htmlspecialchars($params->get('defense')) ?>" />
    	</p>
    	<p>
    		<label for="attack">Attack:</label>
    		<select name="attack_op">
    			<option value="eq"<?php if (($attack_op=$params->get('attack_op')) == 'eq') echo ' selected="selected"' ?>>is equal to</option>
    			<option value="gt"<?php if ($attack_op == 'gt') echo ' selected="selected"' ?>>is greater than</option>
    			<option value="lt"<?php if ($attack_op == 'lt') echo ' selected="selected"' ?>>is less than</option>
    		</select>
    		<input type="text" name="attack" id="attack" value="<?php echo htmlspecialchars($params->get('attack')) ?>" />
    		...
    		<?php if($server->isRenewal): ?>
    		<label for="matk">MATK:</label>
    		<select name="matk_op">
    			<option value="eq"<?php if (($matk_op=$params->get('matk_op')) == 'eq') echo ' selected="selected"' ?>>is equal to</option>
    			<option value="gt"<?php if ($matk_op == 'gt') echo ' selected="selected"' ?>>is greater than</option>
    			<option value="lt"<?php if ($matk_op == 'lt') echo ' selected="selected"' ?>>is less than</option>
    		</select>
    		<input type="text" name="matk" id="matk" value="<?php echo htmlspecialchars($params->get('matk')) ?>" />
    		...
    		<?php endif ?>
    		<label for="refineable">Refineable:</label>
    		<select name="refineable" id="refineable">
    			<option value=""<?php if (!($refineable=$params->get('refineable'))) echo ' selected="selected"' ?>>All</option>
    			<option value="yes"<?php if ($refineable == 'yes') echo ' selected="selected"' ?>>Yes</option>
    			<option value="no"<?php if ($refineable == 'no') echo ' selected="selected"' ?>>No</option>
    		</select>
    		...
    		<label for="for_sale">For Sale:</label>
    		<select name="for_sale" id="for_sale">
    			<option value=""<?php if (!($for_sale=$params->get('for_sale'))) echo ' selected="selected"' ?>>All</option>
    			<option value="yes"<?php if ($for_sale == 'yes') echo ' selected="selected"' ?>>Yes</option>
    			<option value="no"<?php if ($for_sale == 'no') echo ' selected="selected"' ?>>No</option>
    		</select>
    		...
    		<label for="custom">Custom:</label>
    		<select name="custom" id="custom">
    			<option value=""<?php if (!($custom=$params->get('custom'))) echo ' selected="selected"' ?>>All</option>
    			<option value="yes"<?php if ($custom == 'yes') echo ' selected="selected"' ?>>Yes</option>
    			<option value="no"<?php if ($custom == 'no') echo ' selected="selected"' ?>>No</option>
    		</select>
    		...
    		<input type="submit" value="Search" />
    		<input type="button" value="Reset" onclick="reload()" />
    	</p>
    </form>
    
  6. prontera,155,188,0	script	MVP Rank	910,{
    	// get database names, for join
    	query_sql    "SELECT DATABASE()", .@rag_db$;
    	query_logsql "SELECT DATABASE()", .@log_db$;
    	
    	query_sql "SELECT `name`,COUNT(mvp_id) FROM "+.@log_db$+".mvplog " + 
    	          "LEFT JOIN "+.@rag_db$+".`char` ON mvplog.kill_char_id=`char`.char_id " + 
    	          "GROUP BY kill_char_id ORDER BY COUNT(mvp_id) DESC LIMIT 10", .@name$, .@kills;
    	
    	mes "[MVP Rank Top 10]";
    	for( set .@i,0; .@i<getarraysize(.@name$); set .@i,.@i + 1 ){
    		mes "Top ^FF0000"+(.@i+1)+"^000000 "+.@name$[.@i]+" with ^FF0000"+.@kills[.@i]+"^000000 MVPs killed.";
    	}
    	close;
       }
    
    

    Not tested yet, perhaps you can test it and report here if there is any error.

  7. Hi,

     

    tbh, can you guys help me?

    Tell me which client can i use <ITEMLINK> in item description without client crash? Currently, im using client 2013-12-23cRagexe and it crashed my client.

     

    6qktd4ms3y.png

     

     

    Thanks !!! :)

×
×
  • Create New...