Adding a command

melisa

Member
Oct 17, 2014
41
0
ok so when you say
:Rentjetpack
It will cost you 100c
It gives you the enable of a jet pack on your back
It makes you say
*Has successfully purchased Jet pack*
Is it possible thanks
 

JayC

Well-Known Member
Aug 8, 2013
5,505
1,401
Easily possible bro.

if(Session.GetHabbo().Credits < 100){
Session.GetHabbo().Whisper("Transaction Canceled, not enough credits");
return true;
}
Effect:
class4.GetClient().GetHabbo().GetEffectsInventoryComponent().method_2(<effect number>, true);

Take Credits/Update Credits:
Session.GetHabbo().Credits -= 100;
Session.GetHabbo().UpdateCredits(true);

Shout/Whisper/Say
Session.GetHabbo().Shout(Session.GetHabbo().Username + " has purchased a jetpeck");
Session.GetHabbo().Say(Session.GetHabbo().Username + " has bought a Jetpack");
Session.GetHabbo().Whisper("You just purchased a Jetpack for 100c");
return false;
 

JayC

Well-Known Member
Aug 8, 2013
5,505
1,401
Wait where does it say that you have to say :Rentjetpack?
... That would be your case number. Dude seriously this is your 3rd thread about a command you want to be spoon fed to you. You need to do 1 of the following:
1) Start learning yourself, READ THE CODE DON'T JUST ASK FOR IT, UNDERSTAND IT.
2) Wait for your tech to come back , and in the meantime SHUT DOWN YOUR HOTEL OR STOP TRYING TO ADD COMMANDS
3) Hire a new tech
 

JayC

Well-Known Member
Aug 8, 2013
5,505
1,401
Easily possible bro.

if(Session.GetHabbo().Credits < 100){
Session.GetHabbo().Whisper("Transaction Canceled, not enough credits");
return true;
}
Effect:
class4.GetClient().GetHabbo().GetEffectsInventoryComponent().method_2(<effect number>, true);

Take Credits/Update Credits:
Session.GetHabbo().Credits -= 100;
Session.GetHabbo().UpdateCredits(true);

Shout/Whisper/Say
Session.GetHabbo().Shout(Session.GetHabbo().Username + " has purchased a jetpeck");
Session.GetHabbo().Say(Session.GetHabbo().Username + " has bought a Jetpack");
Session.GetHabbo().Whisper("You just purchased a Jetpack for 100c");
return false;
Case 152 {
THE CODE
}
@JayCustom
 

Users who are viewing this thread

Top