Jump to content

sotf

Members
  • Posts

    173
  • Joined

  • Last visited

Everything posted by sotf

  1. Hello! Is there a version of this that uses txt db files? Thanks.
  2. Hi! Good day! I tried manually adding your code, but I am getting this error:
  3. Add mo to after the part where you select an equip to enchant: if(getequiprefinerycnt(.@part) < 10) { goto refrestrict; } ...tapos gawin mo na lang yung label na 'refrestrict' para may pupuntahan yung goto, something like this: refrestrict: mes "I can't enchant gears with refine below 10"; close; lagay mo na lang sa dulo ng script ng npc mo.
  4. Wow hi okay, I made this long ago! Haha anyways, replace all .delay with #delay and try again.
  5. Alright thanks! I will try to do that! ?
  6. I'm pretty sure I'm using the latest rathena, do I still need this? ? (noob question - sorry!)
  7. Hi! I can't put points on my Star Emperor and Soul Reaper, not really sure what the problem might be. Here are some screenshots: Taekwon, Soul Linker, and Star Gladiator skill trees are working fine: Did I miss something? What files do I need to edit to fix this? Thanks in advance!
  8. Yes I did that as well, I've tested it using a character with 100% neutral resist. I still miss even I got warm wind and weapon with an element.
  9. Thanks @Disabled LOOLP! I will try this and give feedback. Thanks again! @Disabled LOOLP I forgot to say my server is pre-renewal. I tried your edit but I the element is still forced neutral.
  10. Hi! Good day! Is there any way to make Creator's skill Acid Demonstration's element be affected by weapon element? Instead of being just forced neutral. (e.g. fire acid demo, water acid demo, wind acid demo, etc) Thanks!
  11. Hi! Good day! Does anyone here offer or knows who offer Windows VPS host provider? Me and my friends plan to open a private server for a game(not ragnarok tho). Any recommendation is appreciated. Thanks!
  12. I see. I guess there's no other way but to install the latest one. Thanks!
  13. Can I still use the old vb 2010 express to compile the latest revision of rathena? (Not rathena c++ tho, just the regular one)
  14. Is it possible to add soul links for ninja and gunslingers using this? (of course they'll be buffed using an item since Ninja/Gunslinger Spirit skills are not available) ex: SL_NINJA: | { bonus bStr,1; }
  15. .spr and .act files for dagger and dual dagger are different.
  16. Hi! Good day! I just want to ask if there's a way that a variable is modified or a script is run once a player clicked a url link in mes.
  17. if(getrefine()==9) { set .wbchance,5; } else if(getrefine()>=10) { set .wbchance,10; } bonus3 bAutoSpellWhenHit,"NPC_WIDEBLEEDING",1,10+.wbchance; +9 refine: 10+5/10 = 1.5% +10 refine or more: 10+10/10 = 2% Not tested but you can try.
  18. You have to make a new script for it, the script you pasted is a PVP Warper that just randomizes a set of map for a period of time. Maybe try this: prontera,100,100,3 script PVP Warper 100,{ mes "Choose a PVP Room:"; switch(select("Random:Room 1:Room 2:Room 3")) { case 1: set .pvproom$,.randroom[rand(0,2)]; goto OnPVPWarp; end; case 2: set .pvproom$,"guild_vs1"; goto OnPVPWarp; end; case 3: set .pvproom$,"guild_vs2"; goto OnPVPWarp; end; case 4: set .pvproom$,"guild_vs3"; goto OnPVPWarp; end; } OnPVPWarp: close2; warp .pvproom$,0,0; announce strcharinfo(0)+" has entered PVP! at "+.pvproom$,0; end; OnInit: setarray .randroom$[0],guild_vs1,guild_vs2,guild_vs3; end; }
  19. Well it worked on my side so...yeah. - script testcg -1,{ OnInit: bindatcmd "testcg","Monster Counting Game::OnStartEvent"; end; } prontera,155,181,5 script Monster Counting Game 757,{ function xy_wall; end; OnInit: .max_round = 3; .max_duration = 3; .wall_mob_id = 1085; setarray .xy_area, 151,169, 161,179; setarray .monster, 1002, 1113, 1242, 1031; .monster_size = getarraysize( .monster ); .npc_name$ = strnpcinfo(0); getmapxy( .map$,.npc_x,.npc_y,1 ); setmapflag .map$,mf_monster_noteleport; end; OnMinute55: announce "[Event] Monster Counting Event in New Prontera will begin in 5 minutes!",bc_all,0x66FFCC; end; OnMinute56: announce "[Event] Monster Counting Event in New Prontera will begin in 4 minutes!",bc_all,0x66FFCC; end; OnMinute57: announce "[Event] Monster Counting Event in New Prontera will begin in 3 minutes!",bc_all,0x66FFCC; end; OnMinute58: announce "[Event] Monster Counting Event in New Prontera will begin in 2 minutes!",bc_all,0x66FFCC; end; OnMinute59: announce "[Event] Monster Counting Event in New Prontera will begin in 1 minute!",bc_all,0x66FFCC; setcell .map$,.xy_area[0],.xy_area[1],.xy_area[2],.xy_area[3],cell_basilica,1; setcell .map$,.xy_area[0],.xy_area[1],.xy_area[2],.xy_area[3],cell_walkable,1; end; OnMinute00: OnStartEvent: if ( !.status ) { areawarp .map$,.xy_area[0],.xy_area[1],.xy_area[2],.xy_area[3],.map$,.npc_x,.npc_y; killmonster .map$,.npc_name$+"::OnDied"; killmonster .map$,.npc_name$+"::OnWallDied"; //setcell .map$,.xy_area[0],.xy_area[1],.xy_area[2],.xy_area[3],cell_basilica,1; //setcell .map$,.xy_area[0],.xy_area[1],.xy_area[2],.xy_area[3],cell_walkable,1; .status = 1; for( .@i = .xy_area[0]; .@i <= .xy_area[2]; .@i++ ){ xy_wall( .@i,.xy_area[1] ); xy_wall( .@i,.xy_area[3] ); } for( .@i = .xy_area[1]; .@i <= .xy_area[3]; .@i++ ){ xy_wall( .xy_area[0],.@i,0 ); xy_wall( .xy_area[2],.@i ); } do{ .@round++; npctalk "Round # "+.@round; sleep 5000; .status = 2; .@mob = .monster[ rand( .monster_size ) ]; .@amount = rand( 20,50 ); // add-on size influence ? areamonster .map$,.xy_area[0],.xy_area[1],.xy_area[2],.xy_area[3],"",.@mob,.@amount,.npc_name$+"::OnDied"; deletepset 1; defpattern 1,"([^:]+):.*\\s"+.@amount+".*","OnRight"; activatepset 1; waitingroom "How many's there?",0; npctalk "Tell me the correct amount of monster in there."; debugmes " > "+.@amount+" "+getmonsterinfo( .@mob,MOB_NAME ); sleep ( .max_duration * 60000 ); killmonster .map$,.npc_name$+"::OnDied"; delwaitingroom; deletepset 1; .status = 1; sleep 5000; }while( .@round < .max_round ); npctalk "That's the Last, thank you for participating."; emotion e_thx; killmonster .map$,.npc_name$+"::OnDied"; killmonster .map$,.npc_name$+"::OnWallDied"; setcell .map$,.xy_area[0],.xy_area[1],.xy_area[2],.xy_area[3],cell_basilica,0; setcell .map$,.xy_area[0],.xy_area[1],.xy_area[2],.xy_area[3],cell_walkable,1; .status = 0; } end; OnDied: OnWallDied: end; OnRight: getmapxy( .@map$,.@x,.@y,0 ); if ( .status == 0 ) { dispbottom "[Counting Game] Event isnt running."; } else if ( .status == 1 ) { dispbottom "[Counting Game] Please wait for the round to start."; } else if ( distance( .npc_x,.npc_y,.@x,.@y ) > 14 ) { dispbottom "[Counting Game] You're too far away."; } else { npctalk "Bravo!! "+strcharinfo(0)+" is correct!!"; // rewards getitem 512,1; getitem 512,2; getitem 512,3; specialeffect2 EF_POTION_CON; awake .npc_name$; } end; function xy_wall { .@x = getarg(0); .@y = getarg(1); monster .map$,.@x,.@y,"",.wall_mob_id,1,.npc_name$+"::OnWallDied"; setcell .map$,.@x,.@y,.@x,.@y,cell_walkable,0; setcell .map$,.@x,.@y,.@x,.@y,cell_basilica,1; return; } } Test this. Type @testcg to force start the event.
  20. Try: function script specialbox { setarray .i1[0],909,910; // Common Items set .i1rand,rand(0,1); // Randomize Common Items; just change max amount if you add items setarray .i2[0],911,912; // Rare Items set .i2rand,rand(0,1); // Randomize Rare Items; just change max amount if you add items setarray .i3[0],2199,1599; // Super Rare Items set .i3rand,rand(0,1); //Randomize Super Rare Items; just change max amount if you add items set .chance, rand(100); // Super Rare Item 1% if (.chance == 1){ getitem .i[.i3rand],1; announce "["+strcharinfo(0)+"] won a ["+getitemname(.i[.i3rand])+"] from the Special Box.",0; end; } // Rare Item 10% else if (.chance <= 2 && .chance >= 11){ getitem .i[.i2rand],1; announce "["+strcharinfo(0)+"] won a ["+getitemname(.i[.i2rand])+"] from the Special Box.",0; end; } // Common Items else { getitem .i1[.i1rand],1; end; } } Just add items in .i1, .i2 and .i3 arrays and make sure to change the variables that randomizes the items to the max number of item you included -1. (-1 since arrays start with 0).
  21. sotf

    Freegift NPC

    First, check the range of Account IDs of the players who participated during your beta. For example, 2000100 is the last account id created during your beta. prontera,100,100,3 script Beta Reward 100,{ if(getcharid(3) <= 2000100){ if(#cbtreward == 1) { mes "You already got your reward!"; close; } //getitem 909,1; getitembound 909,1,Bound_Account; // <-- should be bound if you don't want this to be abused. mes "Here's your reward!"; set #cbtreward,1; close; } mes "You're not a beta player, sorry!"; close; }
  22. Check this part, should be tabs instead of spaces. //=============Valkyrie Quest============== //===================== BTS ===================================================== prontera.gat,154,198,4<tab>script<tab>Ronnel<tab>811,{ if(bry_bry >= 1) goto L_taposme; if(hen_hen >= 1) goto L_taposna;
  23. Try adding a space after your answer and it should work. or search the script for: defpattern 1,"([^:]+):.*"+.@amount+".$", "OnRight"; and change to: defpattern 1,"([^:]+):.*\\s"+.@amount+".*","OnRight"; It should work.
  24. In your BGM folder, replace 01.mp3 to your desired mp3 file.
×
×
  • Create New...