• 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 resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

TalkAction FreakOut Talkaction

Sync

Ø,ø
Joined
May 26, 2009
Messages
1,901
Reaction score
26
Location
Canada
Well, I was bored as **** one day, and just made this crazy talk action that does insane stuff. I made a quick video (I know its trash its just to show you what its sorta about).

YouTube - Crazy TalkAction

So, if you didnt watch the video ill explain how this works. Basically with the script you add
PHP:
<talkaction words="/crazy" hide="yes" event="script" value="crazy.lua"/>

And then you can say /crazy on and it will turn on the script and send random Distance Effects to different x,y. It also changes your Outfit (just the player outfits), your Skull (Flashes) and randomizes the colour and addons, Also changes the direction you look, the Light Colour in your screen and your talkType to creature. I also made it so that you cant say /crazy on more then once so it increases the speed.

If your bored and wanna make something cool even cooler i suggest you try out the script and add your own cool stuff to it. Anyways, heres the script.

Lua:
function changeSkull(cid)
local position = getCreaturePosition(cid)
	if (not isPlayer(cid)) then
		return true
	end
	if (getCreatureSkullType(cid) < 4) then
		doCreatureSetSkullType(cid, (getCreatureSkullType(cid)+1))
	else
		doCreatureSetSkullType(cid, 1)
	end
	addEvent(changeSkull, 200, cid)
	return true
end

function crazy(cid)
local position = getCreaturePosition(cid)
local outfit = {
lookType = math.random(137,160),
lookHead = math.random(1,130),
lookBody = math.random(1,130),
lookLegs = math.random(1,130),
lookFeet = math.random(1,130),
lookAddons = 3
}   
      doSendDistanceShoot(getCreaturePosition(cid), {x = position.x + math.random(-7, 7), y = position.y + math.random(-5, 5), z = position.z}, math.random(1,41)) 
        doSendMagicEffect({x = position.x + math.random(-7, 7), y = position.y + math.random(-5, 5), z = position.z}, math.random(1,32))
          doCreatureChangeOutfit(cid, outfit)
           doCreatureSetLookDirection(cid, math.random(1,8))
            doCreatureSetSpeakType(cid, 19)
             doSetCreatureLight(cid, math.random(1,200), math.random(1,10), 1000)
      addEvent(crazy, 200, cid)
	return true
end

function onSay(cid, words, param, channel)
local time = 1
local storage = 100
local outfit = {
lookType = 128,
lookHead = math.random(1,130),
lookBody = math.random(1,130),
lookLegs = math.random(1,130),
lookFeet = math.random(1,130),
lookAddons = 0
} 
   if param == "on" and getPlayerStorageValue(cid, storage) == -1 then 
  	doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,"Its Crazy Time.")
	  addEvent(changeSkull, time * 200, cid)
	    addEvent(crazy, time * 200, cid)
	     setPlayerStorageValue(cid, storage, 1)   
	elseif param == "off" then
	 doCreatureChangeOutfit(cid, outfit)
	     setPlayerStorageValue(cid, storage, -1)
           addEvent(doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,"GoodBye"), 4000, cid) 
          addEvent(doRemoveCreature, time * 2000, cid) 
        end  	
	return true
end

And also, Please dont "Flame" this or anything, I was just doing this for fun and sharing it with people for a few giggles.
 
Last edited:
Also, if your trying this script out be sure to set your Ambient Light to 0
 
Hahaha didn't seen funiest script, not really useful but nice idea :p
__________________
klekSu.png

You are welcome on kleksoria.com!
Please visit new open tibia forum with it's own ots list. otservers.net!
 
data/talkactions/scripts/mtibia/crazy.lua:30: in function <data/talkactions/scripts/mtibia/crazy.lua:15>

[17:24:41.548] [Error - TalkAction Interface]
[17:24:41.548] In a timer event called from:
[17:24:41.548] data/talkactions/scripts/mtibia/crazy.lua:eek:nSay
[17:24:41.548] Description:
[17:24:41.548] (luaGetThingPosition) Thing not found

-> Fail!
 
Back
Top