*setnpcdisplay("<npc name>", "<display name>", <class id>, <size>)
*setnpcdisplay("<npc name>", "<display name>", <class id>)
*setnpcdisplay("<npc name>", "<display name>")
*setnpcdisplay("<npc name>", <class id>)
Changes the display name and/or display class of the target NPC.
Returns 0 is successful, 1 if the NPC does not exist.
Size is 0 = normal 1 = small 2 = big.
problem:
after change display name with setnpcdisplay, strnpcinfo(0) can't be used any more. is there a way to make script below working as intended
prontera,150,150,0 script display_test 112,{
switch(select("~ Change Display:~ Change to Original")) {
case 1:
.j++;
//setnpcdisplay("<npc name>", "<display name>", <class id>)
if ((.j % 2) == 0)
setnpcdisplay(strnpcinfo(0), "Display "+.@j, 113);
else
setnpcdisplay(strnpcinfo(0), "Display "+.@j, 114);
npctalk "Display sprite and name changed strnpcinfo(0): "+strnpcinfo(0);
end;
case 2:
.j = 0;
npctalk "Display reverted to origin";
setnpcdisplay(strnpcinfo(0), "display_test", 112);
end;
}
}
Question
Litro Endemic
script commands reference
problem:after change display name with setnpcdisplay, strnpcinfo(0) can't be used any more. is there a way to make script below working as intended
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.