Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/28/21 in Posts

  1. Hello. I know that much time has passed, but for now i'm getting back on the client. Soon aesir.perfontain.ru will be shut down, so, please, stay tuned on aesir.perfontain.cc Thanks for your support ! @Psyche why using eathena? It's old and died, also it's not a problem to move to new packetvers with rathena/herc.
    2 points
  2. Try this. Script. function script Boxes { setarray @i1[0],501; // Common setarray @i2[0],502; // Rare setarray @i3[0],503; // Super Rare set @i1rand,rand( getarraysize(@i1) ); set @i2rand,rand( getarraysize(@i2) ); set @i3rand,rand( getarraysize(@i3) ); .chance = rand(100); // Super Rare if (.chance == 1){ getitem @i3[@i3rand],1; announce "["+strcharinfo(0)+"] got ["+getitemname(@i3[@i3rand])+"] 'Super Rare'.",0; } // Rare else if (.chance <= 10 && .chance >= 5){ getitem @i2[@i2rand],1; announce "["+strcharinfo(0)+"] obtained ["+getitemname(@i2[@i2rand])+"] 'Rare'.",0; } // Common else { getitem @i1[@i1rand],1; announce "["+strcharinfo(0)+"] obtained ["+getitemname(@i2[@i2rand])+"] 'Common'.",0; end; } } item_db (example). 501,Red_Potion,Red Potion,0,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "Boxes"; },{},{}
    1 point
  3. Try this. Script. function script CustomBox { .@item = F_Rand( 501,502,503,504 ); announce "["+strcharinfo(0)+"] obtained ["+getitemname( .@item )+"] from Custom Box.",0; getitem .@item, 1; return; } item_db (example) 501,Red_Potion,Red Potion,0,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "CustomBox"; },{},{}
    1 point
  4. quiz_02,238,379,5 script Healer NPC 811{ IF (getmapxy (" quiz_02 ", 237,378) != 0) { mes "-You too far from NPC and can't talk-"; close; } .cell = getareausers(" quiz_02 ", 237,378, 237,378); if(.cell > 1) { mes "wait a second, there's two of you standing on front of me"; close2; warp ( "quiz_02", 246,376 ) } else{ specialeffect2 EF_HEAL2; percentheal 100,100; close2; sleep2 60000; IF (getmapxy (" quiz_02 ", 237,378) = 0) { warp quiz_02 246,376; } } end; }
    1 point
  5. yes it will affect the @warp command and /where Example you want to change the name of prontera map 1. copy the prontera.gat 2. rename prontera.gat to your desired name example mymap.gat 3. add the mymap.gat on your map_cache.dat 4. add mymap on conf/maps_athena.conf and db/map_index.txt 5. simply add the following line to your resnametable on grf folder. mymap.gnd#prontera.gnd# mymap.gat#prontera.gat# mymap.rsw#prontera.rsw# 유저인터페이스\map\mymap.bmp#유저인터페이스\map\prontera.bmp# all you need is to restart the server now and your client.
    1 point
×
×
  • Create New...