1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
Bits and bobs, roughly documentation
Items are in gamemode/shared/itemsystem
Animations are in gamemode/shared/animations
Prayers are in gamemode/shared/prayers
HUD is in gamemode/client
Quests, Inventory, and Skills might all potentially do mysql injection, be careful in their creation, and don't let users enter any fields about them!
When creating new files, make sure the file has some text in it (even just a comment explaining what the file will eventually hold) include() will crash the game if called on an empty file.
If your server starts breaking after a while, it's probably the fault of /gamemode/shared/sh_buff.lua, no you can't put a bandaid on it to fix it, you have to re-write it.
Multi-serverness is defined in /data/artery/maps/<map_name> and /data/zones/<map_name>.txt
PAC's to download on demand are in /data/artery/pacs/<pac_name>
two shop npc's within 200 units of eachother cannot sell the same item.
For creation:
Finding the player's current position
lua_run_cl local gp = LocalPlayer():GetPos() print(string.format("Vector(%.2d,%.2d,%.2d)",gp.x,gp.y,gp.z))
Zones must be made in singleplayer, they are stored in /data/zones/
The zones addon MUST be installed, then set up in sandbox for stuff
|