Jump to content

Jaburak

Members
  • Posts

    1125
  • Joined

  • Days Won

    31

Everything posted by Jaburak

  1. Here; prontera,200,180,4 script Refiner 123,{ mes "What can I do for you?"; swtch(select("Refine Middle Headgear:Refine Lower Headgear")){ case 1: next; mes "Clang Clang!"; atcommand "@refine 512 1"; close; case 2: next; mes "Clang Clang!"; atcommand "@refine 1 1"; close; } }
  2. - script hourlypoints -1,{ //--Start of the Script OnPCLoginEvent: attachnpctimer ""+strcharinfo(0)+""; initnpctimer; end; OnTimer30000: //Check if Vending (normal or @at) if(checkvending() >= 1 || checkchatting() == 1) { dispbottom "The hourly points event stopped because you were vending / chatting. Please relog if you wish to start again."; stopnpctimer; end; } //Check if Idle getmapxy( .@map$, .@x, .@y, 0 ); if(@map$ == .@map$ && @x == .@x && @y == .@y) { set @afk, @afk + 1; } //If move timer resets else { set @afk, 0; } set @map$, .@map$; set @x, .@x; set @y, .@y; //Idle Check for 5 Minutes if(@afk == 5) { dispbottom "The hourly points event stopped because you were idle for 5 minutes. Please relog if you wish to start again."; stopnpctimer; end; } end; OnTimer60000: set @minute, @minute + 1; //Check for 1 Minute if(@minute == 60){ set @minute,0; getitem 7227,1; set #CASHPOINTS, #CASHPOINTS + 10; dispbottom "Online for 12 Hours +10 Cash Points." } stopnpctimer; initnpctimer; end; }
  3. Try this; - script hourlypoints -1,{ //--Start of the Script OnPCLoginEvent: attachnpctimer ""+strcharinfo(0)+""; initnpctimer; end; OnTimer30000: //Check if Vending (normal or @at) if(checkvending() >= 1 || checkchatting() == 1) { dispbottom "The hourly points event stopped because you were vending / chatting. Please relog if you wish to start again."; stopnpctimer; end; } //Check if Idle getmapxy( .@map$, .@x, .@y, 0 ); if(@map$ == .@map$ && @x == .@x && @y == .@y) { set @afk, @afk + 1; } //If move timer resets else { set @afk, 0; } set @map$, .@map$; set @x, .@x; set @y, .@y; //Idle Check for 5 Minutes if(@afk == 5) { dispbottom "The hourly points event stopped because you were idle for 5 minutes. Please relog if you wish to start again."; stopnpctimer; end; } end; OnTimer60000: set @minute, @minute + 1; //Check for 1 Minute if(@minute == 60){ set @minute,0; set hourlypoints,hourlypoints+10; dispbottom "You received 10 Hourly Points by staying ingame for 1 hour"; } //Check for 12 hours consecutive if(@consecutive_hour == 6) { set @consecutive_hour,0; set hourlypoints,hourlypoints+10; dispbottom "You received 10 Hourly Points by staying ingame for consecutive of 6 hour"; } stopnpctimer; initnpctimer; end; } prontera,200,180,1 script Hourly Points Trader 106,{ mes "Do you really want to trade your Points?"; menu "Yes",-,"No",Lno; next; if(pvppoints < 10) goto Lnenough; mes "Here you go!"; set pvppoints,pvppoints-10; getitem 7227,100; close; Lnenough: mes "You do not have enough ^008800Hourly Points^000000."; close; Lno: mes "Please decide."; close; }
  4. Here; //by: Emistry prontera,155,171,5 script GM Online Lists 436,{ mes "Staffs Online Lists : ^FF0000"+getarraysize( .GM_Name$ )+"^000000 Staffs"; mes "^0000FF_____________________________^000000"; for( set .@i,0; .@i < getarraysize( .GM_Name$ ) ; set .@i,.@i + 1 ){ getmapxy( .Map$,.x,.y,0,.GM_Name$[.@i] ); mes "[ Lv ^63D1F4"+.GM_Level[.@i]+"^000000 ] ^FF0000@ ^0000FF"+.GM_Name$[.@i]+"^000000"; mes "^0000FF_____________________________^000000"; } close; OnInit: set .MinGMLevel,99; // Min. GM Level to Show in Online Lists end; OnPCLoginEvent: if( getgmlevel() < .MinGMLevel ) end; set .GM_Name$[ getarraysize( .GM_Name$ ) ],strcharinfo(0); set .GM_Level[ getarraysize( .GM_Level ) ],getgmlevel(); end; OnPCLogoutEvent: if( getgmlevel() < .MinGMLevel ) end; for( set .@i,0; .@i < getarraysize( .GM_Name$ ) ; set .@i,.@i + 1 ){ if( strcharinfo(0) != .GM_Name$[.@i] ) continue; deletearray .GM_Name$[.@i],1; deletearray .GM_Level[.@i],1; end; } end; }
  5. Yes, just add it.
  6. 29600,PACKAGE,Package,18,20,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ if (((Weight*100)/MaxWeight) > 49) { message strcharinfo(0), "You are overweight, you cannot open the box!"; } if (((Weight*100)/MaxWeight) < 49) { getitem 501,10; } },{},{} If the player is overweight when i clicked the box, the box will be delitem (>,<) How do i fix this one? if a player opens a box without overweight the box will be delitem. Did you try it in your server or no? It works fine in my test server, the box should return to your inventory if you're overweight. -.-
  7. Try this; 12920,Enriched_Elunium_Box,Enriched Elunium Box,18,20,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ if (((Weight*100)/MaxWeight) > 49) { message strcharinfo(0), "You are overweight, you cannot open the box!"; getitem 12920,1; } if (((Weight*100)/MaxWeight) < 49) { getitem 7619,10; } },{},{} Hi, Anakid! i have tested it works fine, however, if the player is overweight the giftbox will be delitem? how to make this one that cannot delitem? only if the player is non-overweight will be deducted the gift box or delitem. Just change the getitem ItemID. Excuse me? what do you mean change the getitem ltemID.? My concern is, if a player is overweight the giftbox should not be delitem, unless if a player gets the reward and the giftbox will be deleted. Excuse me? I think you haven't tried it yet.
  8. Try this; function script SWPackage { setarray .@items[0],501,502; setarray .@qtys[0],1,1; if (!checkweight2(.@items,.@qtys)) { mes "You're overweight!";
  9. Try this; 12920,Enriched_Elunium_Box,Enriched Elunium Box,18,20,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ if (((Weight*100)/MaxWeight) > 49) { message strcharinfo(0), "You are overweight, you cannot open the box!"; getitem 12920,1; } if (((Weight*100)/MaxWeight) < 49) { getitem 7619,10; } },{},{} Hi, Anakid! i have tested it works fine, however, if the player is overweight the giftbox will be delitem? how to make this one that cannot delitem? only if the player is non-overweight will be deducted the gift box or delitem. Just change the getitem ItemID.
  10. For eAthena; http://www.eathena.ws/board/index.php?showtopic=197854
  11. So does it mean; you're going to implement +100% HP to all players?
  12. That npc is in trunk/npc/re/renters.txt
  13. I think it's on map/itemdb.c
  14. In my test server I use #8000+ for my custom items.
  15. You need this one; http://rathena.org/board/topic/78320-aura-setter-v8/ Did you mean; transcendent class but the character sprite is 3-1/3-2?
  16. set legacypoints,legacypoints+1; Sample Shop: mes "Do you want to get this item?"; menu "Yes",-,"No",Lno; next; if(legacypoints < 30) goto Lnenough; mes "Sure then!"; set legacypoints,legacypoints-30; getitem 512,1; close;
  17. trunk/conf/groups.conf Find; id: 4 name: "Event Manager" inherit: ( "Support" ) level: 1 commands: { Add; broadcast: true
  18. trunk/db/re/skill_castnodex_db.txt Add: 2008,1 //RK_DRAGONBREATH Thank you sir. for the reply. But can you guess what casting time here in this video I want to be like that. The dragonbreath casting is too slow in 2 seconds. I Miscalculated :/ Sorry BUMP Try 1000-1500.
  19. But it works fine in my test server. Docubo only answers SpongeBOB question.
  20. Check your server.php in 'config/server.php', you should put the correct DB information.
  21. Put your IP in; login_ip char_ip map_ip
  22. ayo_in02,108,161,4 script Prize Sender 437,{ if(!getgmlevel())end; if( Weight > ( MaxWeight / 2 ) ){ mes "You are Overweight!"; close; } set .@itemtoonlineplayers$,strcharinfo(0); mes "Input Item ID"; Input .@item; if (getitemname(.@item) == "null") { mes "Invalid Item ID"; close; } mes "Input Amount"; input .@inum; if( .@inum <= 0 ) { mes "Invalid Amount"; close; } while( .@V < $PlayerNumber ){ set .@V,.@V+1; message getd("$RecordAID"+.@V),"[[[ System ]]] : "+.@itemtoonlineplayers" give you "+getitemname(.@item)+"x"+.@inum; getitem .@item,.@inum,getd("$RecordAID"+.@V); } close; } - script PrizeSenderEvent -1,{ OnInit: if(!getusers(1))while($PlayerNumber)setd "$RecordAID"+(set($PlayerNumber, $PlayerNumber-1)+1),0; end; OnPCLoginEvent: setd "$RecordAID"+set(@AIDNumber,set($PlayerNumber,$PlayerNumber+1)),getcharid(3); end; OnPCLogoutEvent: setd "$RecordAID"+@AIDNumber,getd("$RecordAID"+(set(.@AIDNumber,set($PlayerNumber, $PlayerNumber-1)+1))); attachrid getd("$RecordAID"+@AIDNumber); setd "$RecordAID"+@AIDNumber,0; set @AIDNumber,.@AIDNumber; }
  23. Can you check if you set up your ip correctly in char_athena.conf and map_athena.conf?
×
×
  • Create New...