I will be releasing all of my "mini-scripts" over the course of the next two months.
I have approximately 70 of these scripts that would make your server unique.
You may visit my blog in my signature to view all scripts that have been released so far.
Portal of the Posessed
What does it do?
The portal prevents un-posessed people. The only way to enter is look like an evil thing.
There is an unholy book guarded by a werewolf. Using chameleon rune on the book will make you look evil.
You are posessed, you may now enter the portal
Installing the script:
Remember to change the item looktype, teleport position, damage, and actionID if you wish.
Create a new Lua file in data/movements/scripts named posessedportal and add the following:
Lua:
function onStepIn(cid, item, position, fromPosition)
local cidOutfit = getCreatureOutfit(cid)
if cidOutfit.lookTypeEx == 6103 then -- 6103 is Unholy Book
doTeleportThing(cid, {x = 1082, y = 926, z = 11}) -- Teleport to
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Welcome to the Nightmare Realm.")
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You are not possessed.")
doTeleportThing(cid, fromPosition, true)
doTargetCombatHealth(0, cid, COMBAT_FIREDAMAGE, -200, -200, CONST_ME_HITBYFIRE) -- Damage
end
return true
end
In movements.xml, add the following line:
XML:
<movevent type="StepIn" actionid="37920" event="script" value="posessedportal.lua"/>
In Remere's map editor, set the portal actionID to 37920.