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

Help in onUse action script

zippy

Member
Joined
Feb 1, 2011
Messages
233
Reaction score
8
I have control mind script but i dont want all monster be controled!

the funcation is:

function onUse(cid, item, frompos, item2, topos)
if getPlayerItemCount(cid, item2.itemid) >= 1 then
return false
end
You can make like this: if isInArray({"Ferumbras"},
All inside inarray cannot be control minded!
 
Last edited:
Lua:
if itemEx.uid ~= 0 and isCreature(itemEx.uid) then
	if not getMonsterInfo(getCreatureName(itemEx.uid)).convinceable then
		return doPlayerSendCancel(cid, 'This monster can\'t control minds.')
	end
end
 
both didnt work!

Cyberm:

Code:
[21/04/2011 09:01:51] [Error - Action Interface] 
[21/04/2011 09:01:51] data/actions/scripts/control mind.lua:onUse
[21/04/2011 09:01:51] Description: 
[21/04/2011 09:01:51] data/actions/scripts/control.lua:104: attempt to index a boolean value
[21/04/2011 09:01:51] stack traceback:
[21/04/2011 09:01:51] 	data/actions/scripts/order.lua:104: in function <data/actions/scripts/control mind.lua:79>

Cyko:
Code:
[21/04/2011 09:03:49] [Error - Action Interface] 
[21/04/2011 09:03:49] data/actions/scripts/control mind.lua:onUse
[21/04/2011 09:03:49] Description: 
[21/04/2011 09:03:49] data/actions/scripts/control mind.lua:83: attempt to index global 'itemEx' (a nil value)
[21/04/2011 09:03:49] stack traceback:
[21/04/2011 09:03:49] 	data/actions/scripts/order.lua:83: in function <data/actions/scripts/control mind.lua:79>

You can make like this: if isInArray({"Ferumbras"},
All inside inarray cannot be control minded!
 
Last edited:
please Cykotitian help this guy, he has spam the whole board to get your help!!! help him hes complain to much, i give you a rep too if you help him out and answer hes questions!
 
Back
Top