Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

giveItemBuff Npc command

Newbie Spellweaver
Joined
Jun 24, 2008
Messages
63
Reaction score
7
Go into NPCConversationManager.java and add this

Code:
public void giveItemBuff(int itemId){
            getPlayer().setItemEffect(itemId);
        }

after

Code:
public void setSkin(int color) {
		getPlayer().setSkinColor(MapleSkinColor.getById(color));
		getPlayer().updateSingleStat(MapleStat.SKIN, color);
		getPlayer().equipChanged();
	}

Its very simple!

just use it like this

PHP:
cm.giveItemBuff(itemId);

Thanks to kakashirock for giving me the Idea!
 
Elite Diviner
Joined
Jul 13, 2008
Messages
419
Reaction score
217
Re: [Release]giveItemBuff Npc command

This is maybe a VERY VERY stupid question but... lol... hehe...
What is buff? o_O
 
Newbie Spellweaver
Joined
Jun 24, 2008
Messages
63
Reaction score
7
Re: [Release]giveItemBuff Npc command

This is maybe a VERY VERY stupid question but... lol... hehe...
What is buff? o_O

Like the effect from an item, like uping attack.
 
Elite Diviner
Joined
Jul 13, 2008
Messages
419
Reaction score
217
Re: [Release]giveItemBuff Npc command

ok then looks nice i will add later :) bookmarked
 
Master Summoner
Loyal Member
Joined
Jul 22, 2008
Messages
573
Reaction score
0
Re: [Release]giveItemBuff Npc command

nice :D
can u add spawnMonster npc command?

=\
 
Newbie Spellweaver
Joined
Apr 2, 2008
Messages
83
Reaction score
0
Re: [Release]giveItemBuff Npc command

lols you did it faster than me... i was about to post ,
here's mine :

public void giveItemEffect(int id) {
// MapleCharacter victim = cserv.getPlayerStorage().getCharacterByName(splitted[1]);
// String enterItemId = splitted[2];
// int itemId = Integer.parseInt(enterItemId);
// victim.setItemEffect(itemId);
getPlayer().setItemEffect(id);
}
 
You've got my respect!
Joined
Apr 8, 2008
Messages
508
Reaction score
147
Re: [Release]giveItemBuff Npc command

Why don't you just do:
Code:
cm.getPlayer().setItemEffect(itemId);
?
 
Newbie Spellweaver
Joined
Apr 24, 2008
Messages
89
Reaction score
0
Re: [Release]giveItemBuff Npc command

did you test this ? it doesnt seem to work for me
 
Back
Top