No description
Find a file
Emagi db123c93e9 - Work in Progress: Widget ID support added to RegionScripts, test zone is tutorial_island02 (queens colony, overlord outpost, isle of refuge)
- You can now add a new region identified by its grid and widget id (use /grid to identify when standing over it)
- New LUA Functions:
CreateWidgetRegion(Zone, Version, RegionName, EnvName, GridID, WidgetID, Dist)
* Dist is optional when set to 0.0f we rely only on the widget id, when dist is set we do a radius around the widgets locations
* RegionName and EnvName define the script file so if you are in QueensColony (tutorial_island02) and the RegionName is TestRegion, script is RegionScripts/tutorial_island02/TestRegion.lua
RemoveRegion(Zone, Version, RegionName)
By default Version is 0 on both, but you could specify a version like 546 if you had a DoF client mapped

Example campfire in the newbie area:
ZoneScripts/QueensColony.lua
function init_zone_script, add line:
	CreateWidgetRegion(Zone, 0, "TestRegion", "", 924281492, 4117633379, 2.0)

Create new script, RegionScripts/tutorial_island02/TestRegion.lua with the following:
function TakeFireDamage(Spawn)
    local invul = IsInvulnerable(Spawn)
    if invul == true then
        return 0
    end

	local hp = GetHP(Spawn)
    local level = GetLevel(Spawn)
    local damageToTake = level * 1
	-- if we don't have enough HP make them die to pain and suffering not self
	if hp <= damageToTake then
		KillSpawn(Spawn, null, 1)
	else
		DamageSpawn(Spawn, Spawn, 192, 3, damageToTake, damageToTake, "Fire!", 0, 0, 1, 1)
	end
end

function EnterRegion(Zone, Spawn, RegionType)
	-- initial tick for hitting the fire
	TakeFireDamage(Spawn)

	-- 5 second Tick
	return 5000
end

function Tick(Zone, Spawn, RegionType)

	TakeFireDamage(Spawn)

    -- returning 1 would stop the Tick process until Spawn leaves/re-enters region
	return 0
end
2022-09-14 10:25:10 -04:00
cmake Add CMake for root + Login/WorldServer 2020-09-06 13:18:17 -05:00
Content @xonos icon extraction 2020-03-12 17:50:24 -04:00
DB Fix - Scroll/Recipe scribing fixes 2022-08-13 10:40:04 -04:00
EQ2 - Work in Progress: Widget ID support added to RegionScripts, test zone is tutorial_island02 (queens colony, overlord outpost, isle of refuge) 2022-09-14 10:25:10 -04:00
installer Windows installer EXE Update 2022-06-20 04:14:49 +00:00
server - Work in Progress: Widget ID support added to RegionScripts, test zone is tutorial_island02 (queens colony, overlord outpost, isle of refuge) 2022-09-14 10:25:10 -04:00
.gitignore Update .gitignore 2020-04-16 10:08:31 -04:00
CMakeLists.txt Add CMake for root + Login/WorldServer 2020-09-06 13:18:17 -05:00
LICENSE.md Base 2020-02-28 09:17:24 -05:00
README.md Update 'README.md' 2020-06-08 20:41:56 +00:00

EQ2Emulator Project - ALPHA BUILD

Visit https://www.eq2emu.com for more project details, wiki and server installation instructions.

Building/Compiling

Linux Compile Instructions: On our Wiki

Authors

Project team site at EQ2EMu and ZekLabs

License

This project is licensed under the GNU General Public License - see the LICENSE.md file for details