Hello friends I have got this script here in otland but it does not work for me my TFS is 1.4, if you can add 1 second of exhausted that would be great
and yes it may be possible to make as many monsters as the player wants
my errors in console with the current script
and yes it may be possible to make as many monsters as the player wants
my errors in console with the current script
C++:
> palanca_rotwords.lua [error]
^ ...serv\data\scripts\actions\custom\palanca_rotwords.lua:11: unexpected symbol near '{'
Lua:
local config = {
["1"] = {n = 1},
}
function onTextEdit(cid, item, newText)
if item.uid == 15000 and item.itemid == 9825 then -- add the unique id in the lever
local x = config[newText]
if x then
for i = 1, x.n do
local pos{x=1007, y=1026, z=7-- edit here the locations from the area they spawn in
doSummonCreature("Rotworm", pos)-- name of monster you want here
end
doPlayerSendTextMessage(cid, 22, "1"..newText.." Rotworm spawned.")
else
doPlayerSendTextMessage(cid, 22, "You can only spawn 1 Rotworm at a time.")
end
end
return true
end