Thread: Map Pins
View Single Post
04/25/14, 10:52 AM   #1
skv1991
Join Date: Apr 2014
Posts: 5
Red face Map Pins

Hello everybody, I really want to make my first little AddOn, wich will just show Trunks and Nightshades on Map, I just need a mod.lua(logic) and modData.lua (contain array with coordinates and icon), mod.txt(manifest), and icons folder.

Can you help me?
I read Tutorial on Wiki, but I can't understand how Pins(CustomCompassPins) library works.

I never before work with Lua, but I work with many script languages =)

AddOn name: SKVTrunkMap

SKVTrunkMap.txt
Code:
## Title: SKV1991 Addon
## Version: 0.0.1
## Author: |ca200ffskv1991|r
## APIVersion: 100003
## SavedVariables: SKVTM_SavedVariables
## OptionalDependsOn: CustomCompassPins

Libs/CustomCompassPins/CustomCompassPins.lua

SKVTrunkMap.lua
SKVTrunkMap.xml
SKVTrunkMap.lua
Code:
-------------------------------------------------------------------------------
-- SKVTrunkMap v0.0.1 
-------------------------------------------------------------------------------

if SKVTM == nil then SKVTM = {} end

	
function OnLoad()
	CHAT_SYSTEM:AddMessage("AddOn started")
end

-- slash commands
	SLASH_COMMANDS["/skvtm"] = OnLoad

EVENT_MANAGER:RegisterForEvent("SKVTrunkMap_OnLoad", EVENT_ADD_ON_LOADED, OnLoad)
Custom Compass Pins

Icons
Skvtrunk.dds

Can you explain, how to work with CustomCompassPins and how to add my icons to map?
I don't want to make it like SkyShards map, only icon(s) at specific coordinates.

Help newbie become modder please!
  Reply With Quote