Jump to content
The forums will be going offline for an extended maintenance period at 1400hrs GMT on 19th June 2025. The number of hours for this downtime is intentionally not advertised due to the nature of these upgrades. ×
  • 0

delete_timer error (npc_dynamic_removal_timer)


Gouki

Question


  • Group:  Members
  • Topic Count:  88
  • Topics Per Day:  0.05
  • Content Count:  261
  • Reputation:   13
  • Joined:  08/12/20
  • Last Seen:  

Hi, Does anyone know what does this error mean or how to fix it? there's no much information in search about npc_dynamicpc_removal_timer.

image.png.9aab068b15960b5ad6dd27b7a7cfdc73.png
 

  

-	script	asdsadsada	-1,{

	if($MvPTreasure){ message strcharinfo(0),"The system has been disabled by a gm!"; end; }
	
	getmapxy(.@m1$,.@x1,.@y1,BL_PC);
	getmapxy(.@m2$,.@x2,.@y2,BL_NPC);
	
	if(distance(.@x1,.@y1,.@x2,.@y2) > 2){ message strcharinfo(0),"You are too far away!"; end; }
	
	explode(.@npcinfo$,strnpcinfo(2),"_");
	if(@OpBox$ == strnpcinfo(2)){ message strcharinfo(0),"You are already opening this box!"; end; }
	else if(@OpBox$ != ""){ dispbottom "You can only open one box at a time!"; end; }
	if(getd(".b"+.@npcinfo$[1]+""+.@npcinfo$[2]+"")){ dispbottom "Another player is opening box!"; end; }
	
	if((atoi(.@npcinfo$[5])-gettimetick(2))>=1)
	{
		if(getcharid(0) != atoi(.@npcinfo$[1]))
		{
			if(strcharinfo(1) != getpartyname(atoi(.@npcinfo$[0])))
			{				
				dispbottom "This chest is not yours, only the owner "+(getpartyname(atoi(.@npcinfo$[0])) != "null"?"and the group ("+getpartyname(atoi(.@npcinfo$[0]))+") they can":"can")+" open it!";
				dispbottom "The chest will become unowned in ["+(atoi(.@npcinfo$[5])-gettimetick(2))+" seconds]";
				end;
			}
		}
	}
	
	getmapxy(.@map$,.@x,.@y,BL_PC);
	set @OpBox$,strnpcinfo(2);
	set @OpVar$,".b"+.@npcinfo$[1]+""+.@npcinfo$[2]+"";
	setd(".b"+.@npcinfo$[1]+""+.@npcinfo$[2]+"",1);
	set .@t,atoi(.@npcinfo$[4]);
	set .@time,(.@t==3?25:.@t==2?20:.@t==1?15:10);
	
	message strcharinfo(0),"Opening...";
	hateffect $MvPTRE_HTEID[0],0;
	hateffect $MvPTRE_HTEID[1],0;
	hateffect $MvPTRE_HTEID[2],0;
	hateffect $MvPTRE_HTEID[3],0;
	hateffect (.@t==3?$MvPTRE_HTEID[3]:.@t==2?$MvPTRE_HTEID[2]:.@t==1?$MvPTRE_HTEID[1]:$MvPTRE_HTEID[0]),1;
	
	while(.@time > -1)
	{
		getmapxy(.@map2$,.@x2,.@y2,BL_PC,strcharinfo(0));		
		if(.@map$ != .@map2$ || .@x != .@x2 || .@y != .@y2){ .@time = -1; .@fail = 1; @OpBox$ = ""; }
		else set .@time,.@time-1;	
		if(.@time > -1) sleep2 1000;
	}
	
	hateffect (.@t==3?$MvPTRE_HTEID[3]:.@t==2?$MvPTRE_HTEID[2]:.@t==1?$MvPTRE_HTEID[1]:$MvPTRE_HTEID[0]),0;
	if(.@fail){ message strcharinfo(0),"Unable to open the Treasure Box."; setd(".b"+.@npcinfo$[1]+""+.@npcinfo$[2]+"",0); end; }

 

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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...