Tyronoz
Immortal Technique
Hello Everyone!
Ok what does this script do?
When you cast magic wall it will appear a countdown over the magic wall when the magic wall get removed!
Its 95% easy configurable, maybe bit messy but i did my best
How did you come up with this idea?
I saw on a few servers, their magic wall got timer over it, so i searched on otland and didnt find any posts :O
So i thougt hmm... i going to make one for fun and train on scripting.
Please Feedback
This is my first script using config, i learned it by experimenting.
I love to make scripts easy to edit, so i made it more configurable and it took me time to come up with few ideas i added into the magic wall script
Enjoy!
First go to:
Data/Actions/actions.xml
Add this line:
Code:<action itemid="2293" event="script" value="magicwall.lua" allowfaruse="1"/>
Now go into the scripts in the action folder:
Make a new lua and rename it "magicwall"
Open the lua and add paste this code:
Lua:----------------------------------THIS CODE WAS SCRIPTED BY: OTSWE------------------------------------ local random_txt_onsay = true -- When casting a wall, should the player cast random catch phrases? local otswe = { timer = 15, -- How long will the magic wall stay cooldown = 1, -- How long to cast another one words = {"I LOVE MAGIC WALL!","HAHA YOU CANT GET ME","BIATCH","BOOM"}, -- Here can you add or edit the catch phrases! txt = "END", -- Text when it removes color_on_timer = TEXTCOLOR_BLUE, -- Color on countdown empty_storage = 1000 -- Please set a unused storage } function onUse(cid, item, fromPosition, itemEx, toPosition) if(getPlayerStorageValue(cid, otswe.empty_storage) > os.time()) then doPlayerSendCancel(cid, "You are exhausted.") return true end if getTileInfo(getThingPos(cid)).protection then doPlayerSendCancel(cid, "You can't cast magic wall while your inside protection zone.") else local function removemw() local magicwall = getTileItemById(toPosition, 1497).uid if(magicwall > 0) then doRemoveItem(magicwall) doSendAnimatedText(toPosition,otswe.txt, TEXTCOLOR_RED) doSendMagicEffect(toPosition, CONST_ME_ENERGYHIT) end return true end for mw = 1, otswe.timer do local o = otswe.timer - mw addEvent(doSendAnimatedText, mw * 1000, toPosition, o > 0 and tostring(o), otswe.color_on_timer) end doCreateItem(1497, toPosition) setPlayerStorageValue(cid, otswe.storage, os.time() + otswe.cooldown) addEvent(removemw, otswe.timer * 1000) doSendMagicEffect(toPosition, CONST_ME_ENERGYAREA) end if random_txt_onsay == true then doCreatureSay(cid, otswe.words[math.random(#otswe.words)], TALKTYPE_ORANGE_1) end return true end
Enjoy!
Are you sure you just didn't watch a video of someone with elf-bot?
Or you actual saw it IG?