Jump to content

PB&JJ

Members
  • Content Count

    12
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by PB&JJ

  1. Not sure why mob_dead doesn't work for you. I was going to suggest foreachinrange, but that applies a function. now there is another function called map_count_oncell (called by map->count_oncell) Example code Under the assumption of a rectangular range & positive range value:
  2. Eternity, I sent you a PM earlier. However, it has come to my Attention that rAthena already has a script command that does this, namely:bonus2 bSubSkill,sk,n;
  3. Here you go. prontera,150,150,5 script SizeChanger 4_M_PECOKNIGHT,{ mes "What size would you like to have?"; mes "These changes are persisant after logout"; next; sizeVal = select("Normal:Small:Large") -1; mes "There you go!"; close2; OnPCLoginEvent: atcommand "@size "+ sizeVal; end; }
  4. This works for me (thinking you mean this) prontera,150,150,5 script Jump 123,{ set .Map$,.Maps$[rand(getarraysize(.Maps$))]; announce "Jumper Event : Go Find me!! I'm here in "+.Map$+"!!!",bc_yellow; goto OnStart; OnStart: while(1) { //Initiate an infinite loop set $@jx,rand(0,300); //Set a randon X coordinate set $@jy,rand(0,300); //Set a random Y coordinate if(checkcell(""+.Map$+"",$@jx,$@jy,cell_chkpass)) break; //If cell is walkable break out of the loop } unitwarp(getnpcid(0), .Map$, $@jx, $@jy); delwaitingroom; waitingroom "Hello World",0; end; OnWhisperGlobal: if(!getgmlevel()) end; dispbottom $@jx + " " + $@jy; end; OnInit: setarray .Maps$[0],"prontera"; // Possible maps end; } prontera,1,1,1 duplicate(Jump) Jump#prt 123 If you whisper "npc:Jump" as a GM you can get the coördinates of the location. I Didn't take any liberation on changing anything else other than the requested. Eitherway, goodluck!
  5. Ah, that's right. I forgot to remove that. I'll fix it once I get home, thanks!
  6. Usage: item bonus command: bonus2 bReduceSkillDamage x,y; // x = skill id, y = % Example: { Id: 8001 AegisName: "Custom_Card" Name: "Custom Card" Type: 6 Buy: 20 Weight: 10 Loc: 32 Script: <" bonus2 bReduceSkillDamage,MO_EXTREMITYFIST,50; //Reduces Asura strikes damage by 50% "> }, you can find it on my github here.
  7. What you can do is give players access to @showexp or use @showexp on login. Unless you want to do exp tracking, you'll have to request a script command that returns the amount of tax that is attached to the player.
  8. Usage: item script command: bBonusSkillLevel,x,y; // x = skill_id y = skills level to add Example: (if you use double strafing, cast one that is two levels higher instead) { Id: 1715 AegisName: "Arbalest_" Name: "Arbalest" Type: 4 Buy: 48000 Weight: 1000 Atk: 90 Range: 5 Slots: 2 Job: { Archer: true Thief: true Hunter: true Rogue: true Bard: true } Loc: 34 WeaponLv: 3 EquipLv: 33 View: 11 Script: <" bonus bBonusSkillLevel,AC_DOUBLE,2; "> }, Note: I Couldn't find the proper entry point for skill levels, I figured I should look around in unit.c / clif.c. For now it's overloading battle_calc_attack. if you happen to find any bugs. or skills it doesn't work on (when final skill level <= 10), or if you have any suggestions Please let me know!
  9. PB&JJ

    findmob

    I noticed that the last file upload was in February the 22nd, it might be possible that the person in charge of the download section has gone missing.
  10. PB&JJ

    findmob

    morocc,154,89,6 script findmobtest 1_M_SIZ,{ input .@temp; findmob(.@test$,.@temp); for(.@i = 0; .@i < getarraysize(.@test$); .@i += 2){ dispbottom "mob spawns on map " + .@test$[.@i] + " ( " + .@test$[.@i+1] + ")"; } }
  11. Isn't it better to use compare? (E.G: if( compare(@warp$,"pr") || @warp$ == "0") -> do.... It'll cut down your script size :-P, also its not case sensitive that way. try to use Temporarily npc variables as well .@variable$
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.