• 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!

Action Error

Teshan

New Member
Joined
Nov 10, 2010
Messages
51
Reaction score
0
Hello and thought another way of doing what I put in another post, I put an item that you use to access a room with 4 teleports in you can choose the equipment you find yourself eating the object.

I put here the script if anyone can fix it:

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
		doPlayerAddItem (cid, 2499,2500,2469,2537,7366)
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You have recieved Knight Set Donator.")
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREWORKS)
		doRemoveItem(item.uid)
end
	return true
			
end
 
Lua:
local items = {2499,2500,2469,2537,7366}
function onUse(cid, item, fromPosition, itemEx, toPosition)
for i = 1, #items do
    doPlayerAddItem(cid,i,1)
end
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You have recieved Knight Set Donator.")
    doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREWORKS)
    doRemoveItem(item.uid)
return true
end
 
Last edited:
Lua:
local items = {2499,2500,2469,2537,7366}
function onUse(cid, item, fromPosition, itemEx, toPosition)
for i = 1, #items do
    doPlayerAddItem (cid,i,1)
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You have recieved Knight Set Donator.")
    doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREWORKS)
    doRemoveItem(item.uid)
end
return true
end

It Appears this error:

2ymudzn.png


I using Tfs 0.4.0
 
Back
Top