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

I need help with /r

Status
Not open for further replies.

Lundberg90

New Member
Joined
Jan 16, 2009
Messages
19
Reaction score
0
can anyone help me how to fix /r or if its even possible on Evolutions 0.7.8 XML (8.0) server.

i would be very happy if someone could help me out here ;)
 
Last edited:
talkactions > Scripts, make a new lua file called remove.lua

Code:
function onSay(cid, words, param, channel)
	local toPos = getCreatureLookPosition(cid)
	if(isInArray({"full", "all"}, param:lower())) then
		doCleanTile(toPos, false)
		doSendMagicEffect(toPos, CONST_ME_MAGIC_RED)
		return true
	end

	local amount = 1
	param = tonumber(param)
	if(param) then
		amount = param
	end

	toPos.stackpos = STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE
	local tmp = getThingFromPos(toPos)
	if(tmp.uid ~= 0) then
		if(isCreature(tmp.uid)) then
			doRemoveCreature(tmp.uid)
		else
			doRemoveItem(tmp.uid, math.min(math.max(1, tmp.type), amount))
		end

		doSendMagicEffect(toPos, CONST_ME_MAGIC_RED)
		return true
	end

	toPos.stackpos = STACKPOS_TOP_FIELD
	tmp = getThingFromPos(toPos)
	if(tmp.uid ~= 0) then
		doRemoveItem(tmp.uid, math.min(math.max(1, tmp.type), amount))
		doSendMagicEffect(toPos, CONST_ME_MAGIC_RED)
		return true
	end

	toPos.stackpos = STACKPOS_TOP_CREATURE
	tmp = getThingFromPos(toPos)
	if(tmp.uid ~= 0) then
		doRemoveCreature(tmp.uid)
		doSendMagicEffect(toPos, CONST_ME_MAGIC_RED)
		return true
	end

	for i = 5, 1, -1 do
		toPos.stackpos = i
		tmp = getThingFromPos(toPos)
		if(tmp.uid ~= 0) then
			if(isCreature(tmp.uid)) then
				doRemoveCreature(tmp.uid)
			else
				doRemoveItem(tmp.uid, math.min(math.max(1, tmp.type), amount))
			end

			doSendMagicEffect(toPos, CONST_ME_MAGIC_RED)
			return true
		end
	end

	doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
	return true
end

Then go back to the folder Talkactions, open Talkactions.xml
CTRL + F, search for Community Managers
Paste this:
Code:
<talkaction value="remove.lua" event="script" access="4" words="/r" log="yes"/>
 
it doesen't work =/ and i dont have Community Managers in the Talkactions the only thing i have is

<?xml version="1.0"?>

<talkactions>

<talkaction words="open sesame" script="example.lua" />

<talkaction value="remove.lua" event="script" access="4" words="/r" log="yes" />

</talkactions>
 
Status
Not open for further replies.
Back
Top