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

Looking for scripts!

kyrus infinity

New Member
Joined
Mar 16, 2012
Messages
14
Reaction score
0
Hey guys! I'm looking for a few scripts that DO work with TFS Mystic Spirit 0.2.11pl2 client 9.1 version!

Ive searched for days to find scripts that will actually work and I have yet to find these:

Working Vip System

Highscores Ingame talkaction

Multi-vocation based door

Id appreciate any and all help! Thank you!

~Kyrus
 
Last edited:
This is for highscores.

Go to talkactions/scripts and make a new lua file and put this script.
Lua:
local ranks = {

['fist'] = {0},

['club'] = {1},
['sword'] = {2},
['axe'] = {3},
['distance'] = {4},
['shield'] = {5},
['fish'] = {6},
['magic'] = {7},
['level'] = {8},

}


function onSay(cid, words, param)

local msg = string.lower(param)
if ranks[msg] ~= nil then
str = getHighscoreString((ranks[msg][1]))
else
str = getHighscoreString((8))
end
doShowTextDialog(cid,6500, str)
return TRUE

end

Then in talkactions.xml put this.
XML:
	<talkaction words="!highscores" event="script" value="highscores.lua"/>
 
Multi vocation based door? hmm sec

Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if getPlayerVocation(cid) == 1 or getPlayerVocation(cid) == 2 then -- Sorc  & Druid
        if getPlayerPosition(cid).x == toPosition.x and getPlayerPosition(cid).y == toPosition.y then
            doTransformItem(item.uid, item.itemid+1)
            doTeleportThing(cid, toPosition, true)
        end
    else
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Only Sorcerers can pass through this gate")
    end
    return true
end
 
Last edited:
Thank you guys ^^
Although im unsure what to say with your highscore script. Did everything corrently, however, !highscores fist !highscore fist, or anything near that or rank commands dont do anything
 
Last edited:
Working multi vocation door for singen and multiple voc

Here we go


Actions.xml
Code:
<action uniqueid="10091" script="Other/nameofscript (VovDoorKnightandPaladin).lua" />

So here come's a voc door that will work for Knight's and Paladin's
Code:
function onUse(cid, item, frompos, item2, topos)

	if item.uid == 10096 then
		if getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 7 or getPlayerVocation(cid) == 4 or getPlayerVocation(cid) == 8 then
			doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You can pass, you are a Knight or a Paladin.")
			pos = getPlayerPosition(cid)

		if pos.x == topos.x then
		if pos.y < topos.y then
			pos.y = topos.y + 1
		else
			pos.y = topos.y - 1
	end
	
	elseif pos.y == topos.y then
		if pos.x < topos.x then
			pos.x = topos.x + 1
		else
			pos.x = topos.x - 1
	end
	
		else
			doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,'Please stand in front of the door.')
	return 1
	end

			doTeleportThing(cid,pos)
			doSendMagicEffect(topos,12)
		else
			doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,'You can\'t pass, you aren\'t a Knight or a Paladin.')
	end
	
	return 1
		else
	return 0
	end
end
 
Edited my script a bit, here it should work this time.

Lua:
local highscores = {
 
['fist'] = {0},
 
['club'] = {1},
['sword'] = {2},
['axe'] = {3},
['distance'] = {4},
['shield'] = {5},
['fish'] = {6},
['magic'] = {7},
['level'] = {8},
 
}
 
 
function onSay(cid, words, param)
 
local msg = string.lower(param)
if highscores[msg] ~= nil then
str = getHighscoreString((highscores[msg][1]))
else
str = getHighscoreString((8))
end
doShowTextDialog(cid,6500, str)
return TRUE
 
end
 
Back
Top