• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

new spells

xscas

New Member
Joined
Jan 1, 2010
Messages
46
Reaction score
0
has possibility I put new spells on my server 10.41?

and

in the script:
Code:
local config = {
itemid = 2319,
many = 1,
pos = {x=613, y=414, z=13},
tepos = {x=616, y=417, z=13}
}
function onUse(cid, item, frompos, item2, topos)
if getTileItemById(config.pos, config.itemid) and doRemoveItem(getTileItemById(config.pos, config.itemid).uid, config.many) then
doTeleportThing(cid, config.tepos)
else
doPlayerSendTextMessage(cid, 20, "xxxxxxxo")
end
return true
end
how to put not teleport to position, just create a teleport to a position?
thanks
 
TFS 1.0?
Code:
Game.createItem(1387, 1, toPosition):setDestination(Position(100, 100, 7)

Yes, you can add new spells, just create a new Lua file, add it same way as the other spells in spells.xml and you can use the spell scripts as example.
 
Thank u Limos,
how do i put quantity in this script and collate vocations:
Code:
local vocationsItem = {
[1] = 2160,
[2] = 2160,
[3] = 2160,
[4] = 2160,
[5] = 2160,
[6] = 2160,
[7] = 2160,
[8] = 2160
}

local lvlGain = 50

function onAdvance(cid, skill, oldLevel, newLevel)

if (getPlayerLevel(cid) == lvlGain and getPlayerStorageValue(cid, 403245) ~= 1) then
doPlayerAddItem(cid, vocationsItem[getPlayerVocation(cid)])
setPlayerStorageValue(cid, 403245, 1)
end

return true

end
 
0 error, but, this script dont work


AND

in this system:
http://otland.net/threads/jail-system.209213/

i use:
/jail test, 30 ---> work
/jail teste two, 30 ---> dont work
no jail characters with space in name
what do i do?



Code:
for word in string.gmatch(tostring(t[1]), "(%w+)") do
to
Code:
for word in string.gmatch(tostring(t[2]), "(%w+)") do
ya?
 
Back
Top