Jump to content
  • 0

Cutin not gone after click close?


rakuzas

Question


  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.04
  • Content Count:  459
  • Reputation:   6
  • Joined:  06/29/12
  • Last Seen:  

/help

 

Hello,

 

i put cutin in some of my NPC.. But why its not disappear after click close? Which part is my mistake? Thank you..

 

Here is the sample..

 

ra_temple,110,159,5	script	GM Online Lists	856,{
cutin "3rd_wl_queen06",2;
mes "Staffs Online Lists : ^FF0000"+getarraysize( .GM_Name$ )+"^000000 Staffs";
mes "^0000FF_____________________________^000000";
for( set .@i,0; .@i < getarraysize( .GM_Name$ ) ; set .@i,.@i + 1 ){
	getmapxy( .Map$,.x,.y,0,.GM_Name$[.@i] );
	mes "[ ^63D1F4"+.GM_Level$[.@i]+"^000000 ] ^FF0000@ ^0000FF"+.GM_Name$[.@i]+"^000000";
	mes "^0000FF_____________________________^000000";
	}
close;

OnInit:
set .MinGMLevel,1;              // Min. GM Level to Show in Online Lists
end;

OnPCLoginEvent:
set .@gmlevel,getgmlevel();
if( .@gmlevel < .MinGMLevel ) end;
set .@size,getarraysize( .GM_Name$ );
set .GM_Name$[ .@size ],strcharinfo(0);
if( .@gmlevel < 10 ) set .GM_Level$[ .@size ],"Level 1 GM";
else if( .@gmlevel < 20 ) set .GM_Level$[ .@size ],"Level 2 GM";
else if( .@gmlevel < 30 ) set .GM_Level$[ .@size ],"Level 3 GM";
else if( .@gmlevel < 40 ) set .GM_Level$[ .@size ],"Level 4 GM";
else set .GM_Level$[ .@size ],"ADMIN";
end;

OnPCLogoutEvent:
if( getgmlevel() < .MinGMLevel ) end;
for( set .@i,0; .@i < getarraysize( .GM_Name$ ) ; set .@i,.@i + 1 )
	if( strcharinfo(0) == .GM_Name$[.@i] ){
	deletearray .GM_Name$[.@i],1;
	deletearray .GM_Level$[.@i],1;
	end;
	}
end;
}

// Special Thanks to Emistry for nice script and guide to make it works!
// Edit some script to make it works on Milenia Ragnarok Online by Rakuzas.

 

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  181
  • Reputation:   53
  • Joined:  04/07/13
  • Last Seen:  

The usual way is this:

close2;
cutin "", 255;
end;

If this doesn't work, something is wrong on your side.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

Before your close add I think it is...

cutin "",255;
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.04
  • Content Count:  459
  • Reputation:   6
  • Joined:  06/29/12
  • Last Seen:  

Before your close add I think it is...

cutin "",255;

 

Not working.. If i put before my close, it will shows nothing.. Like no cutin.. Hmmm i tried to put before "end;" but still same problem.. 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  193
  • Reputation:   14
  • Joined:  12/02/11
  • Last Seen:  

Before your close add I think it is...

cutin "",255;
 

Not working.. If i put before my close, it will shows nothing.. Like no cutin.. Hmmm i tried to put before "end;" but still same problem..

add before close
next;
cutin "",255;
Edited by 2essy2killu
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.04
  • Content Count:  459
  • Reputation:   6
  • Joined:  06/29/12
  • Last Seen:  

The usual way is this:

close2;
cutin "", 255;
end;

If this doesn't work, something is wrong on your side.

/thx now its really works!

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