Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
36 lines (32 sloc)
1.23 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //===== EinherjarRO Scripts ================================== | |
| //= F_ItemLink | |
| //===== By: ================================================== | |
| //= Stolao | |
| //===== Current Version: ===================================== | |
| //= 1.02 | |
| //===== Compatible With: ===================================== | |
| //= rAthena SVN | |
| //===== Description: ========================================= | |
| //= Displays an Item Link / Blue Text depeding on settings | |
| //===== Comments: ============================================ | |
| //= Optmize more? | |
| //===== Additional Comments: ================================= | |
| //= 1.00 Original Make | |
| //= 1.01 Typo Fix | |
| //= 1.02 Added Show Item ID Option per request | |
| //===== Contact Ifo: ========================================= | |
| //= [Stolao] | |
| //= Email: Taingram11@gmail.com | |
| //============================================================ | |
| Function Script F_ItemLink { | |
| // callfunc("F_ItemLink",<Item ID>{,Link/Blue}; | |
| // [0] Item ID | |
| // Duh? | |
| // [1] Link/Blue | |
| // Toggle: 1 = Link, 0 = Blue | |
| // [2] Show Item ID | |
| // Toggle: 1 = Link, 0 = Blue | |
| // Default Setting for Link/Blue | |
| .@Link = 1; | |
| return (getarg(2,0)?"( "+getarg(0)+" )":"") + ((getarg(1,.Link))?"<ITEM>"+getitemname(getarg(0))+"<INFO>"+getarg(0)+"</INFO></ITEM>":"^0000FF"+getitemname(getarg(0))+"^000000"); | |
| } | |