Jump to content
  • 0

Disguise Event Bug


greenieken

Question


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  154
  • Reputation:   1
  • Joined:  05/02/12
  • Last Seen:  

http://pastebin.com/gkVPLgcz

Hi here's my script for disguise event.. the problem is that when it is automatically started, (eg. onclock2000), when they warp into the map where the disguise npc is located. the npc will immediately announce that the event will start in the next 2 hours then the npc will hide already without even starting the event. but when it is started manually, it is working accordingly. what might be the problem? help please. thanks :)

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  43
  • Reputation:   15
  • Joined:  06/24/12
  • Last Seen:  

Any map-server debug error?

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

if(getmapusers("hc_pront") == 0)
{
	disablenpc "Disguise NPC";
	set $guessactive, 0;
	end;
}

It's not the map of your event. Your problem is coz of this.

OnGMStop:
	if ($guessactive)
	{
		set $guessactive, 0;
		announce "A Gamemaster has stopped the Disguise Event",0;
		set $DisguiseRound, 0;
		mapwarp "hc_pront","hc_pront",202,171;
		setnpcdisplay "Disguise NPC",794;
		disablenpc "Disguise NPC";
		disablenpc "guesswarp";
	}
	end;

Wrong mapwarp. It's the same map.

You used a lot of global permanant variable...

Well, why didn't you use this release ?

trunk/npc/custom/events/disguise.txt

Edited by Capuche
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...