Jump to content
  • 0

R>Walking NPC


Atheia

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   0
  • Joined:  01/26/15
  • Last Seen:  

Here my script

prontera,157,196,4    script    GM Online Lists    811,{
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 "[ Lv ^63D1F4"+.GM_Level[.@i]+"^000000 ] ^FF0000@ ^0000FF"+.GM_Name$[.@i]+"^000000";
    mes "Location : ^0000FF"+.Map$+"^000000";
    mes "^0000FF_____________________________^000000";
    }
close;

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

OnPCLoginEvent:
if( getgmlevel() < .MinGMLevel ) end;
set .GM_Name$[ getarraysize( .GM_Name$ ) ],strcharinfo(0);
set .GM_Level[ getarraysize( .GM_Level ) ],getgmlevel();
end;

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

 

Edited by Emistry
Please use CODEBOX.
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3123
  • Reputation:   1617
  • Joined:  03/26/12
  • Last Seen:  

Your post is so unhelpful. "R>Walking NPC" from where to where? You want the NPC you provided (should've been in a codeblock) to walk? Any particular route? Do you want it to just walk round in circles continuously? Do you want it to walk a few steps then stop for a few seconds?

C'mon.

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