Jump to content

Question

Posted

This is for Lightning Bolt Scroll. I can use it to other player

{ itemskill "MG_LIGHTNINGBOLT",3; },{},{}

I want to have a Scroll that can reset a player's stat.

is it a function or something?

Thanks for helping me every time master scripters!!! thanks a lot!!!!

11 answers to this question

Recommended Posts

Posted
I want to have a Scroll that can reset a player's stat.

use this

.............{ resetstatus; },{},{}

for the lignthing bolt scroll..

it should be usable on player when you are inside PVP Zone..or i mistaken ?

Posted

i mean, GM will use the scroll to reset the players stats.... not on using the item for it self... hmmmmmmm..... i hope we can make it master scripters!!!!.

goodluck on us

Posted

So you want a GM to input a player to reset stats for? I'd suggest whispering an invisible NPC or having your item call a function, since it's not what itemscripts are really meant for. But the code is pretty basic:

if (getgmlevel() < 40) end; // Required GM level
message strcharinfo(0),"Input a character name. The character must be online.";
set .@return, getcharid(3);
input .@n$;
if (!attachrid(getcharid(3,.@n$))) { dispbottom "Character "+.@n$+" not online."; end; }
resetstatus;
attachrid(.@return);
dispbottom "Stats reset.";
delitem <item_id>,1;
end;

Posted

can we focus on the function master scripters?

the pattern will be the Lightning Bolt Scroll , but the function is to reset stats...it is like a GM using the scroll to reset the players' stats just by targeting the player using the scroll....

i hope it is possible..it is for all of us!

Posted

Oh, you want it to target a player? That requires a lot of source editing, I would not suggest doing it (or, I doubt anyone will do it for free).

Posted

yup!! i understand... ok then...

but is this script already complete?

if (getgmlevel() < 40) end; // Required GM level

message strcharinfo(0),"Input a character name. The character must be online.";

set .@return, getcharid(3);

input .@n$;

if (!attachrid(getcharid(3,.@n$))) { dispbottom "Character "+.@n$+" not online."; end; }

resetstatus;

attachrid(.@return);

dispbottom "Stats reset.";

delitem <item_id>,1;

end;

Posted

i dont think that is possible with just npc script....

perhap these required you to edit alot in the src ..maybe ~


the script post by Euphy is almost complete...

just required the header...

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...