Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Rappelz > Rappelz Private Server
You last visited: Today at 14:05

  • Please register to post and access all features, it's quick, easy and FREE!


A little question about the event_state system

Old   #1
elite*gold: 0
Join Date: Sep 2008
Posts: 1,570
Received Thanks: 1,155
A little question about the event_state system

Hey everyone,

in the last weeks i wrote a custom event_buff system. It will give or remove buffs connected with special events on the server.

The whole system is working very fine. But after about 12-24 hours the server crashes or no it do not crash it's like the 7.4 bug at the beginning. Everything freezes and nobody can login.

I played around with the whole system and finally it looks like the freezes are caused by the event_states.

I'm only interested if somebody is fighting with the same problems by using one, a few or all of the following commands about 10 times in one hour.


At the moment the server freezes

-nobody is able to do something ingame
-i'm able to kick player via CaptainHerlockServer
-i'm able to execute gamecommands
-BUT the moment i use one of the event_state commands the server won't response anymore

After hours of trying around with that **** i wrote a workaround and now everything is working fine. But i'm interested if someone found a solution for this issue.

c1ph3r is offline  
Old   #2
elite*gold: 0
Join Date: Mar 2009
Posts: 236
Received Thanks: 129
Correct me if iam wrong, but these commands ware made to execute just fine as in official since our servers are official.

Only causes might be :

- the script has an deadlock ( turning your game into a freeze and trying to update same time )
- the database threads are unable to handle the situation, as they get updated
- Perhaps the script passes ingame-flags? check these for sure.

could you maybe provide more information?


to me it looks like something that has been recently putted in or edited, caused this problem for you. either that or an flag is missing.

hope i helped you out a lil.

misterd is offline  
Old   #3
elite*gold: 0
Join Date: Jul 2012
Posts: 147
Received Thanks: 198
I hope I'm understanding the problem correctly...

Do you have event states in a series of lua functions such as the following?
function event_buffs()
	add_event_state(2506, 41, 900000)
	add_event_state(2508, 41, 900000)
	add_event_state(163429, 10, 900000)
	add_event_state(13425, 277, 900000)
	add_event_state(13424, 277, 900000)
	add_event_state(13423, 36, 900000)
	add_event_state(163448, 39, 900000)
	add_event_state(2505, 160, 900000)
	add_event_state(2507, 160, 900000)
	add_event_state(163433, 90, 900000)
	add_event_state(163405, 48, 900000)
	add_event_state(163407, 48, 900000)
	add_event_state(163406, 48, 900000)
	add_event_state(163404, 48, 900000)
	add_event_state(1013, 100, 900000)
Or do you have a list in a self written program which you're firing under specific conditions, etc?

The reason i ask is, I had a simple program written in c# which punched in event states under certain conditions which it read from a list. I had issues with it freezing when there were too many commands sent to it at one time.
foreach(string line in lines)
	foreach (Process herlock in Process.GetProcessesByName("CaptainHerlockServer"))
		string text = eventBuffList[1];
		IntPtr p = Marshal.StringToHGlobalAuto(text);
		IntPtr tmp = FindWindowEx(herlock.MainWindowHandle, IntPtr.Zero, "Edit", null);
		SendMessage(tmp, WM_SETTEXT, 0, p);
		SendMessage(tmp, 258, 13, IntPtr.Zero);
It would work fairly well, until there were too many in the list then Herlock would lock up.

But once I added
in the code block or switched to lua functions the issue was corrected.

Hope that helped, mate.
TheChinStrap is offline  
1 User

« Previous Thread | Next Thread »

Similar Threads
question about new system
Hey guys , I just wondered what I get when I go to 74 mops with my party which is lvl 56-64 . Is it up to the mops lvl or the char lvl whether I get...
1 Replies - SRO Main - Discussions / Questions
[Question]about Pvp System
hi i try this PvP System - Pet Filter & More from R*Z - PvPSystem_ClientAndServer.rar compiled without errors
1 Replies - Flyff PServer - Discussions / Questions
[Question] OP System
System: Microsoft Windows Server 2003 Standard x64 Edition Service Pack 2 Computer: Quad-Core AMD Opteron(tm) Processor 2352 2.11 GHz 512...
1 Replies - EO PServer Hosting
[question] int kal cs/s system
Hi all :) i have scammed someone with 120kk and a lvl 59 cjb acc on hanin (id pw pw2 sn) but i dont wanna take risk and start play on cjb...
31 Replies - Kal Online

All times are GMT +1. The time now is 14:05.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.