PB&JJ
-
Content Count
12 -
Joined
-
Last visited
-
Days Won
1
Posts posted by PB&JJ
-
-
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;
-
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; }
-
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!
-
Ah, that's right. I forgot to remove that. I'll fix it once I get home, thanks!
-
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% "> },
-
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.
-
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! -
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.
-
-
Check around cell And mob dead
in Source Support
Posted · Edited by PB&JJ
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: