Jump to content
  • 0

Weird loadevent phenomenon


rqueen

Question


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  82
  • Reputation:   1
  • Joined:  04/30/13
  • Last Seen:  

Hi, before anything, please feel free to move this thread if I posted in the wrong section.

 

I can't seem to find the source of this weirdness, but here's how it goes: Basically, everytime I warp, enter, or refresh in a map where a loadevent flag is running, I get that screen effect like when using @refresh where the screen goes black for a second.

 

I didn't mind it at first, but overtime it has started getting into my nerves. What makes it weirder is this doesn't happen to normal accounts, only GM accounts, but apparently not all. I've narrowed it down and apparently it only happens to GMs who are lvl80 and above.

 

I've only recently started developing for this server, and the old dev's are hard to reach, so I dunno where to start. :/

Edited by rqueen
Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Unload all scripts and load them one by one so that you can track what script is doing the weirdness. :D

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  82
  • Reputation:   1
  • Joined:  04/30/13
  • Last Seen:  

I think it's more of a source problem though, since it happens in any map I step into that has the loadevent flag.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

if you know it's the problem caused by loadevent then..search for loadevent inside your NPC folder...you dont have to unload all npc and check 1 by 1 ...

 

 everytime I warp, enter, or refresh in a map where a loadevent flag is running, I get that screen effect like when using @refresh where the screen goes black for a second.

sound like a script that work like this ?

OnPCLoadMapEvent:
warp "map",x,y;  // warp to same map.

or

OnPCLoadMapEvent:
atcommand "@refresh";
 

 

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  82
  • Reputation:   1
  • Joined:  04/30/13
  • Last Seen:  

if you know it's the problem caused by loadevent then..search for loadevent inside your NPC folder...you dont have to unload all npc and check 1 by 1 ...

 

 

 everytime I warp, enter, or refresh in a map where a loadevent flag is running, I get that screen effect like when using @refresh where the screen goes black for a second.

sound like a script that work like this ?

OnPCLoadMapEvent:
warp "map",x,y;  // warp to same map.

or

OnPCLoadMapEvent:
atcommand "@refresh";
 

That sounds plausible.

 

I've tried using:

grep 'loadevent' *
to look for the string in the npc folder, but the results returned are just file names with loadevent in it.
 
Can you tell me the correct syntax for searching keywords inside text files in the whole npc folder?
Edited by rqueen
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

search for

OnPCLoadMapEvent:
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  82
  • Reputation:   1
  • Joined:  04/30/13
  • Last Seen:  

Aaaaaaa I really can't find it. Already looked at the whole NPC folder. :/



search for

OnPCLoadMapEvent:

I think I found it!

OnPCLoadMapEvent:
	if(callfunc("pball_chteam",getcharid(3,strcharinfo(0)))<1&&getgmlevel()<80){
		end;
	}
	atcommand "@refresh";
	end;

 

The get getgmlevel string should also explain why it only happens to lvl80 GM's and above.

I'm curious now though... why does it happen on every map where there's a loadevent flag?

Link to comment
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
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  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.

×
×
  • Create New...