Kubix 83 Posted April 22, 2016 Hey!This is Event Manager, that helps you create new events. I add new script command for test:D Works like debugmes. 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). For start event, use - @startevent <event name> For check event settings use - @checkevent <event name> For join - @joinevent Leave - @leaveevent 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 3 Legend, xlaws27 and bWolfie reacted to this Quote Share this post Link to post Share on other sites
astralprojection 35 Posted May 10, 2016 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: } Quote Share this post Link to post Share on other sites
Kubix 83 Posted May 13, 2016 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. Quote Share this post Link to post Share on other sites
Eternity 1 Posted May 24, 2016 (edited) @@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: Map Console: PS: don't mind with the [WARNING] its not part of your script. Edited May 24, 2016 by Eternity Quote Share this post Link to post Share on other sites
Kubix 83 Posted May 26, 2016 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 Quote Share this post Link to post Share on other sites
Eternity 1 Posted May 26, 2016 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. Quote Share this post Link to post Share on other sites
Legend 43 Posted May 26, 2016 @@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: Map Console: 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. Quote Share this post Link to post Share on other sites
Eternity 1 Posted May 27, 2016 (edited) @@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: Map Console: 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 Edited May 27, 2016 by Eternity Quote Share this post Link to post Share on other sites
Kubix 83 Posted May 29, 2016 Emulator work with .c scripts Quote Share this post Link to post Share on other sites
Tyrill 1 Posted February 16, 2017 (edited) Hi, I have install plugins. I have one error when i start my server: 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 February 16, 2017 by Tyrill Quote Share this post Link to post Share on other sites
IndieRO 33 Posted September 2, 2017 (edited) On 2/17/2017 at 4:52 AM, Tyrill said: Hi, I have install plugins. I have one error when i start my server: 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 September 2, 2017 by melv0 Quote Share this post Link to post Share on other sites