myieee Posted July 7, 2016 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 83 Reputation: 0 Joined: 12/07/11 Last Seen: November 29, 2020 Share Posted July 7, 2016 is it possible to make @costumeitem on script ? I am planning to make a costume headgear npc quest. for example players want to make a costume hat. in my GM account i could make @costumeitem hat 1 . so how to put it on script npc ? Quote Link to comment Share on other sites More sharing options...
0 Kurofly Posted July 7, 2016 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 283 Reputation: 31 Joined: 07/08/14 Last Seen: January 15, 2022 Share Posted July 7, 2016 use the 'atcommand' script command *atcommand "<command>"; This command will run the given command line exactly as if it was typed in from the keyboard by the player connected to the invoking character, and that character belonged to an account which had GM level 99. // This will ask the invoker for a character name and then use the '@nuke' // GM command on them, killing them mercilessly. input @player$; atcommand "@nuke "+@player$; Note that for atcommands bound using 'bindatcmd', this command will execute the original atcommand, not the script-bound atcommand. Quote Link to comment Share on other sites More sharing options...
0 myieee Posted July 7, 2016 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 83 Reputation: 0 Joined: 12/07/11 Last Seen: November 29, 2020 Author Share Posted July 7, 2016 use the 'atcommand' script command *atcommand "<command>"; This command will run the given command line exactly as if it was typed in from the keyboard by the player connected to the invoking character, and that character belonged to an account which had GM level 99. // This will ask the invoker for a character name and then use the '@nuke' // GM command on them, killing them mercilessly. input @player$; atcommand "@nuke "+@player$; Note that for atcommands bound using 'bindatcmd', this command will execute the original atcommand, not the script-bound atcommand. so for example if(countitem(7227) < 50 || countitem(720) < 500 || countitem(995) < 500) GOTO L_NOITEM; delitem 7227,50; delitem 720,500; delitem 995,500; atcommand "@costumeitem",getitem 5512,1; is like this ? btw im using eathena Quote Link to comment Share on other sites More sharing options...
0 Elsa Mist Posted July 7, 2016 Group: Members Topic Count: 23 Topics Per Day: 0.01 Content Count: 387 Reputation: 60 Joined: 10/08/13 Last Seen: July 14, 2022 Share Posted July 7, 2016 Try with what Kurofly advice to you, if eAthena support the @costumeitem then it should be work. Quote Link to comment Share on other sites More sharing options...
0 _Okuz_ Posted July 7, 2016 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 92 Reputation: 17 Joined: 08/11/12 Last Seen: August 30, 2017 Share Posted July 7, 2016 @myieeThe correct syntax is: if(countitem(7227) < 50 || countitem(720) < 500 || countitem(995) < 500) GOTO L_NOITEM; delitem 7227,50; delitem 720,500; delitem 995,500; atcommand "@costumeitem 5512 1"; // atcommand "@costumeitem <item_id> <item_amount>"; C ya! Quote Link to comment Share on other sites More sharing options...
Question
myieee
is it possible to make @costumeitem on script ? I am planning to make a costume headgear npc quest. for example players want to make a costume hat. in my GM account i could make @costumeitem hat 1 . so how to put it on script npc ?
Link to comment
Share on other sites
4 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.