Jump to content
Kubix

Event Manager

Recommended Posts

Hey!
This is Event Manager, that helps you create new events.

 

I add new script command for test:D

Works like debugmes.

post-9627-0-28078200-1461367478_thumb.png

  1. statusmes "message";

 

You can look in Return.c file, here you can find functions that helps you work with new Events.

I convert 2 standart events (RFYL & Bomb Poring).

  1. For start event, use - @startevent <event name>
  2. For check event settings use - @checkevent <event name>
  3. For join - @joinevent
  4. Leave - @leaveevent
  5. For get prize - @event

For add new event:
First goto Event_DB.c and add your event settings

Then add your event script to /Events/ folder :)

 

Also I can help you convert your scripts.
Have questions? feel free to ask :)
 

Share this post


Link to post
Share on other sites
 

getting this

  parse_callfunc: not enough arguments, expected ','
    44:         {
    45:                 if( Event_Win_IDs[ .@i ] != 0 )
    46:                 {
*   47:                         getitem return_Event_Prize( Event_Win_IDs[.@i] ), return_Event_Amount( Event_Win_IDs[.@i] );
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
    48:                         deletearray Event_Win_IDs[.@i], 1;
    49:                 }
    50:         }

 

Share this post


Link to post
Share on other sites

 

 

getting this

  parse_callfunc: not enough arguments, expected ','
    44:         {
    45:                 if( Event_Win_IDs[ .@i ] != 0 )
    46:                 {
*   47:                         getitem return_Event_Prize( Event_Win_IDs[.@i] ), return_Event_Amount( Event_Win_IDs[.@i] );
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
    48:                         deletearray Event_Win_IDs[.@i], 1;
    49:                 }
    50:         }

 

You must upload Return.c before all other scripts.

 

scripts_custom.conf:

 

npc: npc/custom/Event_Manager/Return.c

npc: npc/custom/Event_Manager/all other event manager's scripts.

Share this post


Link to post
Share on other sites

@@Kubix

I have encounter errors on latest Hercules Git Hash 93a2c73.

I'm not sure if this error is the functions. Although i added them correctly.

I priority the 'Return.c' before load other scripts.

 

Script:

W9JgUtJ.png

 

Map Console:

 

WkKUOK9.png

 

PS: don't mind with the [WARNING] its not part of your script.

Edited by Eternity

Share this post


Link to post
Share on other sites
npc: npc/kubix_scripts/EventManager/Return.c
npc: npc/kubix_scripts/EventManager/Debug.c
npc: npc/kubix_scripts/EventManager/Main.c
npc: npc/kubix_scripts/EventManager/Winner.c
npc: npc/kubix_scripts/EventManager/Add_Event.c
npc: npc/kubix_scripts/EventManager/Event_DB.c
npc: npc/kubix_scripts/EventManager/Mapflags.c
npc: npc/kubix_scripts/EventManager/Events/RFYL.c
npc: npc/kubix_scripts/EventManager/Events/BOMB.c
npc: npc/kubix_scripts/EventManager/Events/DICE.c
 

this is my

Share this post


Link to post
Share on other sites

 

npc: npc/kubix_scripts/EventManager/Return.c
npc: npc/kubix_scripts/EventManager/Debug.c
npc: npc/kubix_scripts/EventManager/Main.c
npc: npc/kubix_scripts/EventManager/Winner.c
npc: npc/kubix_scripts/EventManager/Add_Event.c
npc: npc/kubix_scripts/EventManager/Event_DB.c
npc: npc/kubix_scripts/EventManager/Mapflags.c
npc: npc/kubix_scripts/EventManager/Events/RFYL.c
npc: npc/kubix_scripts/EventManager/Events/BOMB.c
npc: npc/kubix_scripts/EventManager/Events/DICE.c
 
this is my

Its weird. But let me re-try again.

Thank you.

Share this post


Link to post
Share on other sites

@@Kubix

I have encounter errors on latest Hercules Git Hash 93a2c73.

I'm not sure if this error is the functions. Although i added them correctly.

I priority the 'Return.c' before load other scripts.

 

Script:

W9JgUtJ.png

 

Map Console:

 

WkKUOK9.png

 

PS: don't mind with the [WARNING] its not part of your script.

 

I believe those ".c" files located in NPC folder should be in ".txt", and before loading those scripts don't forget to add the "statusmes.c" in plugins folder.

Share this post


Link to post
Share on other sites

 

 

@@Kubix

I have encounter errors on latest Hercules Git Hash 93a2c73.

I'm not sure if this error is the functions. Although i added them correctly.

I priority the 'Return.c' before load other scripts.

 

Script:

W9JgUtJ.png

 

Map Console:

 

WkKUOK9.png

 

PS: don't mind with the [WARNING] its not part of your script.

I believe those ".c" files located in NPC folder should be in ".txt", and before loading those scripts don't forget to add the "statusmes.c" in plugins folder.
Statusmes is in debug.c as you can see it. And also i added it manually in src/ instead of plugin.

Maybe i should re arranged the format :D

Edited by Eternity

Share this post


Link to post
Share on other sites

Hi, 

 

I have install plugins. I have one error when i start my server: 

 

865805error3.png

 

My script_custom.conf : 

// Event Manager
"npc/custom/heroes/event-manager/Return.c",
"npc/custom/heroes/event-manager/Add_Event.c",
"npc/custom/heroes/event-manager/Debug.c",
"npc/custom/heroes/event-manager/Event_DB.c",
"npc/custom/heroes/event-manager/Main.c",
"npc/custom/heroes/event-manager/Mapflags.c",
 
 
"npc/custom/heroes/event-manager/Winner.c",
"npc/custom/heroes/event-manager/Events/BOMB.c",
"npc/custom/heroes/event-manager/Events/RFYL.c",

An idea ?

Thank's in advance
Edited by Tyrill

Share this post


Link to post
Share on other sites
On 2/17/2017 at 4:52 AM, Tyrill said:

Hi, 

 

I have install plugins. I have one error when i start my server: 

 

865805error3.png

 

My script_custom.conf : 

// Event Manager
"npc/custom/heroes/event-manager/Return.c",
"npc/custom/heroes/event-manager/Add_Event.c",
"npc/custom/heroes/event-manager/Debug.c",
"npc/custom/heroes/event-manager/Event_DB.c",
"npc/custom/heroes/event-manager/Main.c",
"npc/custom/heroes/event-manager/Mapflags.c",
 
 
"npc/custom/heroes/event-manager/Winner.c",
"npc/custom/heroes/event-manager/Events/BOMB.c",
"npc/custom/heroes/event-manager/Events/RFYL.c",

An idea ?

Thank's in advance

me too

Edit: Problem Solve

Change get_unique_id into getcharid(0)

 

 

Edited by melv0

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.