jestemPolakiem
New Member
Map
by jestemPolakiem
by jestemPolakiem
script has been tested on The Forgotten Server 0.3.6pl1 and worked
Code:
[B]To use the script, just use a map.[/B]
Map has been updated.
data/actions/actions.xml
PHP:
<action itemid="1956" event="script" value="1956.lua"/>
data/actions/scripts/1956.lua
PHP:
marks = {
[0] = {pos = {x = 160, y = 55, z = 7}, type = MAPMARK_TEMPLE, description = "Temple"},
[1] = {pos = {x = 143, y = 51, z = 7}, type = MAPMARK_BAG, description = "Shops"},
[2] = {pos = {x = 131, y = 55, z = 7}, type = MAPMARK_STAR, description = "City Center"},
[3] = {pos = {x = 184, y = 64, z = 7}, type = MAPMARK_GREENNORTH, description = "Gate Output"}
}
function onUse(cid, item, fromPos, itemEx, toPos)
for i = 0, #marks do
doPlayerAddMapMark(cid, marks[i].pos, marks[i].type, marks[i].description)
end
doCreatureSay(cid, 'Map has been updated.', TALKTYPE_MONSTER)
return true
end
Greets
jestemPolakiem
Last edited: