• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

capture the flag?

Status
Not open for further replies.

Rochet2

Moderator / Eluna Dev
I would like to note that this is the release section. Im moving this to support.

okay dokie well where would i start?
Depends on how you would want to implement things.
Since you want support, you should perhaps be more specific about what you want to do exactly.
Maybe you could try something out and ask for help if you get stuck.

Are you having trouble looking for how to do something? Im unsure what problems you are having.

You can find the functions and methods here:
http://eluna.emudevs.com/
You can find the hooks/events here:
https://github.com/ElunaLuaEngine/Eluna/blob/master/HookMgr.h#L31
You can find examples from the lua release section and from this repository:
http://emudevs.com/forumdisplay.php/83-Lua
https://github.com/ElunaLuaEngine/Scripts
 

Ladrek

Enthusiast
not problems just yet just asking and look around its open world CTF the idea is when a player picks up the flag hes a buffed with 100x hp and other players can kill him and grab it run around kill players until hes dead etc so basicly like ctf but meat style
 
Last edited:

Ladrek

Enthusiast
this is what ive done so far object wise but i need to make the warsong flag a buff so it can be droped and removed and this is what happens

Code:
local objectid = 179786

caster = Aura:GetCaster()
aura_id = Aura:GetAuraId(45450)
GameObject:Despawn()

CaptureTheflag.JPG
 
Last edited:

Rochet2

Moderator / Eluna Dev
Use the on gossip hello hook for the gameobject and when that triggers, despawn the gameobject and apply the aura on the clicker. (how does wsg flag work?)
 

Ladrek

Enthusiast
Use the on gossip hello hook for the gameobject and when that triggers, despawn the gameobject and apply the aura on the clicker. (how does wsg flag work?)

you can pick it up and drop it in world and it will go back as a game object to be picked up again
 

Ladrek

Enthusiast
still didn't work

Code:
local objectid = 179786

RegisterPlayerGossipEvent(menu_id, event, function)
    GameObject:Despawn(0)
    Aura:GetAuraId(23333)
 

slp13at420

Mad Scientist
you can examine how i handle the flag GO's here ---> https://github.com/BlackWolfsDen/El.../master/Grumbo'z Guild Warz.lua#L1054to#L1129

i use RegisterGameObjectEvent 1 to interact_with/spawn/despawn the flags.

this should help you with spawn/de-spawn.

Code:
local flagid = 100000 -- GO id 100000 for ally 100001 for horde

function Tagflag(event, player, go)
     do stuff
end

RegisterGameObjectGossipEvent(flag_id, 1, Tagflag) 
RegisterGameObjectGossipEvent(flag_id+1, 1, Tagflag)
 
Last edited:
Status
Not open for further replies.
Top