Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/21/17 in all areas

  1. - script commands_start -1,{ OnPCBaseLvUpEvent: if ( BaseLevel >= 20 && getgroupid(0) == 0 ) { query_sql("UPDATE `login` SET `group_id` = 1 WHERE `account_id` ="+getcharid(3)+""); announce strcharinfo(0)+" has unlocked player commands",0; dispbottom "congratulations! now you need to relog to use commands"; } end; } add the groupid checking before alter the groupid, this help to prevent the script affecting any GM in case they level up their characters, or cases where player assigned to different group id that isn't equal to 0.
    2 points
  2. 1 point
  3. well.. no wonder i'm not encounter this issue on my server as i'm using Ubuntu 14.04.5 64-bit.. i think if this issue is genuine & pure, u should report it at rAthena github repository...
    1 point
  4. Hi, sorry for the late respond, i was trying to work your request this morning however my boss call me at work so i couldn't finished it So here's the friendly script u can use, easy to manage please see OnInit: prontera,155,184,4 script Card Trader 871,{ mes .n$; mes rand(2) ? "How may i help you today?" : "Take a look maybe you can check something interesting?"; next; .@i = select("- Information:- Exchange Item:- Cancel"); switch(.@i) { case 1: mes .n$; mes "Normal Cards Rate: 100%"; mes "Mini-Boss Cards Rate: 30%"; mes "MvP Cards Rate: 1%"; close; case 2: if ( countitem(.itemRequired) < 15 ) {// Blank Card mes .n$; mes "I'm sorry you don't have the ^0000FF"+ getitemname(.itemRequired) +"^000000 to exchanged."; mes "Please come back to me if you have it already."; close; } mes .n$; mes "Would you like to exchange your ^0000FF"+ getitemname(.itemRequired) +"^000000?"; next; progressbar "0x11CC99",1; set .@size, getarraysize( .reward ); for( set .@i, 1; .@i < .@size; .@i += 2 ) { .@percent[.@i] = .@total + .reward[.@i]; .@total += .reward[.@i]; } .@r = rand( .@total +1 ); for( set .@i, 1; .@i < .@size; .@i += 2 ) if( .@percent[.@i] > .@r ) break; getitem .reward[ .@i-1 ], 1; delitem .itemRequired,15; // Blank Card announce "Player, "+ strcharinfo(0) +" recieved "+ getitemname(.reward[ .@i-1 ]) +" (1).",0; end; case 3: mes .n$; mes "Come back anytime you want."; close; } OnInit: .n$ = "[ Card Trader ]";// NPC Name .itemRequired = 6187; // Blank Card setarray .reward, // <item_id>,<chances rate%>; // Normal Cards: 100% 4001,100, // Poring Card 4002,100, // Fabre Card // Mini Boss Cards: 30% 4174,30, // Deviling Card 4054,30, // Angeling Card // MvP Cards: 1% 4399,1, // Thanatos Card 4302,1; // Tao Gunka Card end; } RAW Link: http://immortalsro.com/rAScripts/card_trader.txt Tested ingame.
    1 point
  5. - script LuckyPlayer -1,{ OnInit: OnClock0000: set .LuckyTime,rand(24); OnMinute00: if( gettime(3) == .LuckyTime ){ set .DelayMin,rand(60); sleep ( rand(60) * 1000 ); while(1) { query_sql "select account_id from `char` where online = 1 order by rand() limit 1", .@aid; attachrid .@aid; if( CheckVending() ) { DetachRID(); continue; } announce strcharinfo(0) +" Get 1 Old Gift Box for Lucky Player of the day!", 0,0x00FF00; getitem F_Rand ( 1,2,3,4,5,6,7),1; // <item_id> dispbottom "you got 1 Old Gift Box"; break; } } end; } Didn't know Emistry got the respond first.
    1 point
  6. getitem 12244,1; change to getitem F_Rand( 501,502,503,504,505,506,507 ),1;
    1 point
  7. here is the packets for this client.. hope this is should help u. xD Packets 2017-01-25aRagexeRE.txt
    1 point
×
×
  • Create New...