SHOW:
|
|
- or go back to the newest paste.
| 1 | New Lua Functions: | |
| 2 | ||
| 3 | General Additions: | |
| 4 | getPositionFromDirection(pos, dir, length) | |
| 5 | getActiveRingID(itemid) | |
| 6 | getTargetsInArea(pos, radius, aggressiveness, includePlayers) | |
| 7 | ||
| 8 | Creature Class Additions: | |
| 9 | Creature:isPlayer() | |
| 10 | Creature:isNpc() | |
| 11 | - | Creature:isMonster(cid) |
| 11 | + | Creature:isMonster() |
| 12 | Creature:isFriendly() | |
| 13 | Creature:isInnocent() | |
| 14 | ||
| 15 | Container Class Additions: | |
| 16 | Container.GetLast() | |
| 17 | Container.GetIndexes() | |
| 18 | Container:isEmpty() | |
| 19 | Container:isFull() | |
| 20 | Container:EmptySlots() | |
| 21 | ||
| 22 | Self Class Additions: | |
| 23 | - | Self.GetLookPos() -- rename to Self.LookPos() |
| 23 | + | Self.LookPos(range) |
| 24 | Self.Money() | |
| 25 | Self.DepositMoney(amount) | |
| 26 | Self.WithdrawMoney(amount) | |
| 27 | Self.Flasks() | |
| 28 | - | Self.DropFlasks() |
| 28 | + | Self.DropFlasks(x, y, z) |
| 29 | Self.ItemCount(itemid [, container]) | |
| 30 | Self.DropItems(x, y, z, ...) | |
| 31 | Self.Cast(words, mana) | |
| 32 | Self.UseLever(x, y, z, itemid) | |
| 33 | - | Self.OpenDoor(x, y, z, key) |
| 33 | + | Self.OpenDoor(x, y, z [, key]) |
| 34 | - | Self.CloseDoor(x, y, z, key) |
| 34 | + | Self.CloseDoor(x, y, z [, key]) |
| 35 | Self.CutGrass(x, y, z) | |
| 36 | Self.UsePick(x, y, z) | |
| 37 | Self.Equip(itemid, slot [, count]) | |
| 38 | Self.OpenDepot() | |
| 39 | Self.DepositItems(...) | |
| 40 | Self.WithdrawItems(slot, ...) | |
| 41 | ||
| 42 | String Class Additions: --credits: http://lua-users.org/wiki/StringRecipes | |
| 43 | string:titlecase() | |
| 44 | string:split(s) | |
| 45 | string:trim() |