Jump to content

Patskie

Members
  • Posts

    1702
  • Joined

  • Last visited

  • Days Won

    19

Everything posted by Patskie

  1. Change disablenpc "Banker"; to : disablenpc "Mr.Banker";
  2. Replace all : arenapoint to : #CASHPOINTS
  3. Try this one ( credits to @Emistry ) : prontera,150,150,5 script Sample 757,{ query_sql( "SELECT `party_id`,`name` FROM `party` LIMIT 20",.@party_id,.@name$ ); .@size = getarraysize( .@party_id ); if( .@size ) { mes "Select a Party."; for( .@i = 0; .@i < .@size; .@i++ ) .@menu$ = .@menu$ + .@name$[.@i] + ":"; next; .@party = select( .@menu$ ) - 1; mes "["+.@name$[.@party]+"]"; getpartymember .@party_id[.@party]; mes "Member("+$@partymembercount+"):"; for( .@i = 0; .@i < $@partymembercount; .@i++ ) mes " > "+$@partymembername$[.@i]; mes "Party Leader : " +rid2name(getpartyleader(.@party_id[.@party], 1)); getmapxy(.@map$, .@x, .@y, 0, rid2name(getpartyleader(.@party_id[.@party], 1))); mes "Map of the leader : " +.@map$; mes "X Coordinates : " +.@x; mes "Y Coordinates : " +.@y; } else { mes "No party."; } close; }
  4. This one : prontera,160,187,4 script Freebies 123,{ query_sql ("SELECT `last_ip` FROM `login` WHERE `account_id`= '" + getcharid(3) + "'", .@lip$); mes "[Hello]"; mes "[I can give you a free gift based on your future job.]"; mes "[Please choose the correct item for the future job]"; if(!#Freebie && ( getd("$" + .@lip$ + "_ASD") == 0 )) { mes "Select one:"; next; switch(select("Swordsman:Magician:Archer:Acolyte:Merchant:Thief")) { case 1: getitem 13758,1; getitem 969,20; getitem 1108,1; getitem 2104,1; getitem 4043,4; //Item for Swordsman break; case 2: getitem 13758,1; getitem 969,20; getitem 1108,1; getitem 2104,1; getitem 4043,4; //Item for Magician break; case 3: getitem 13758,1; getitem 969,20; getitem 1108,1; getitem 2104,1; getitem 4043,4; //Item for Archer break; case 4: getitem 13758,1; getitem 969,20; getitem 1108,1; getitem 2104,1; getitem 4043,4; //Item for Acolyte break; case 5: getitem 13758,1; getitem 969,20; getitem 1108,1; getitem 2104,1; getitem 4043,4; //Item for Merchant break; case 6: getitem 13758,1; getitem 969,20; getitem 1108,1; getitem 2104,1; getitem 4043,4; //Item for Thief break; } set #Freebie, 1; setd "$" + .@lip$ + "_ASD", getd("$" + .@lip$ + "_ASD") + 1; close; } OnInit: waitingroom "Get your freebies here ! ",0; end; }
  5. Try this one. Trigger time : 2:30 AM, 5:00 AM, 7:30 AM, 10:00 AM, 12:30 PM, 3:00 PM, 5:30 PM, 8:00 PM, 10:30 PM OnClock0230: OnClock0500: OnClock0730: OnClock1000: OnClock1230: OnClock1500: OnClock1730: OnClock2000: OnClock2230: announce "Dice: Preparense! El Evento Dice esta por dar Inicio",0; sleep2 10000; announce "Dice: Para acceder a el evento vayan a la Ciudad de Prontera y entren en un Portal que aparecera en el jardin.",0; sleep2 10000; announce "Dice: Despues de 1 minuto el portal se cerrara.",0; sleep2 10000; announce "Dice: Recuerden entrar al portal los que quieran participar.",0; enablenpc "prtevent"; initnpctimer; end;
  6. #CASHPOINTS - Cash Points #ROK_POINTS - Rok Points #CUSTOM_POINTS - Custom Points They are all the same ( account based variable ) and they only differ in name . You can use a dynamic shop or multi currency shop and set the currency to your custom points.
  7. Try : - script Sample -1,{ OnInit: addtimer 5000,strnpcinfo(0)+"::OnCheck"; // 5 seconds end; OnCheck: if ( checkvending() ) atcommand "@kick " +strcharinfo(0); end; }
  8. Like this? : input .@message$; addrid(0); dispbottom strcharinfo(0)+ ": " +.@message$;
  9. You want guild chat using dispbottom?
  10. Emistry one : Item Combo Restriction [ LHZ Card ] Just change the id number
  11. try http://rathena.org/board/topic/73701-recallmap-command/
  12. You can take a look on our wiki Diff
  13. alberta 435 60 is out of range i think
  14. I think map coordinates do not exist.
  15. This? mes "How many Players for each Party Team ?"; mes "Min = 1 Max = "+$@partymembercount; mes "Because you only have "+$@partymembercount+" member right now."; next; input .No,1,$@partymembercount;
  16. ( ( gettime(3) % 3 ) == 0 ) meaning if gettime(3) (hour of day) is divisible by 3 run the script. 03:00 06:00 09:00 12:00 15:00 18:00 21:00 24:00 are all divisible by 3. 1 Seconds (0 - 59) 2 Minutes (0 - 59) 3 Hours (0 - 23) 4 Day of Week (0: Sunday - 6: Saturday) 5 Day of Month (1 - 31) 6 Month (1 - 12) 7 Year (1970 - 2038) 8 Day of Year (1 - 366)
  17. Try : - script Sample -1,{ OnInit: set .item_id,7227; set .amount,10; monster "prontera",0,0,"Poringer",1002,1,strnpcinfo(0)+"::OnKill"; end; OnKill: for (set .@i,0; .@i < .amount; set .@i,.@i+1) { do { set .@x, rand(1,500); set .@y, rand(1,500); } while (!checkcell("prontera",.@x,.@y,cell_chkpass)); makeitem .item_id,1,"prontera",.@x,.@y; } end; }
  18. Your topic title would not tell everything or rather would not explain everything on what you are requesting. We are not group of people who can do telepathy here. So if you want a handy help from script makers on this community. Why not help yourself first? By explaining yourself, your want, how it works, what are the conditions etc. etc.
  19. You mean this http://www.eathena.ws/board/index.php?act=attach&type=post&id=9718 ? // -- Configuration Option set .npcname$,"[ ^0000FF Class Helper ^000000 ]"; set .InfoMenu,1; // Classes Informations Option [ 0 - Disable / 1 - Enable ] set .1stClassMenu,1; // First Job Class Option [ 0 - Disable / 1 - Enable ] set .2ndClassMenu,1; // Second Job Class Option [ 0 - Disable / 1 - Enable ] set .High1stClassMenu,1; // High 1st Class Option [ 0 - Disable / 1 - Enable ] set .Trans2ndClassMenu,1; // Transcendent Class Option [ 0 - Disable / 1 - Enable ] set .Trans3rdClassMenu,1; // Third Job Class Option [ 0 - Disable / 1 - Enable ] set .ExpandedClassMenu,1; // Expanded Class Option [ 0 - Disable / 1 - Enable ] set .BabyClassMenu,1; // Baby Job Class Option [ 0 - Disable / 1 - Enable ] set .Baby3rdClassMenu,1; // Baby Third Job Class Option [ 0 - Disable / 1 - Enable ] set .Allskills,1; // Complete Skills Option [ 0 - Disable / 1 - Enable ] // -- Usable for Only 1 Time set .Based,1; // [ 0 - Account Based / 1 - Character Based ]
  20. OnClock OnClock0000: // 12 am OnClock0400: // 4 am OnClock0800: // 8 am OnClock1200: // 12 pm OnClock1600: // 16:00 or 4pm OnClock2000: // 20:00 or 8pm
  21. Yes it does set .char_name$,"Emistry";
  22. Edited my previous post. Change end to return. Sorry i don't have the time to check on my local server so bare with me
  23. Tested on my local server and it works : - script Sample -1,{ OnPCKillEvent: if ( strcharinfo(3) != "prontera" ) end; getnameditem 7420, rid2name( killedrid ); end; } If player killed another player outside prontera the script will not be triggered. If they killed each other within prontera then the script will be triggered. Here is my screenshot for reference :
×
×
  • Create New...