command to make the costume?
command to make the costume?
nice thread 321, I think this will help a lot of people who don't know wdf coding is or don't know how to :/
Here are some commands I made and where edited/fixed to work on any emu. (:
They work on every Holograph Emulator (r25, r26, r35, etc)
Mass Pixels - Gives everyone pixels
Give Pixels - Gives the desired user pixelsCode:#region :masspixels <amount> case "masspixels": { if (rankManager.containsRight(this, "fuse_administrator_access", userID) == false) { return false; } else { Int64 pixelstoupdate = int.Parse(args[1]); foreach (virtualUser User in userManager._Users.Values) { Int64 newpixels = User._Pixels + pixelstoupdate; using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient()) { dbClient.runQuery("UPDATE users SET pixels = " + newpixels + " WHERE name = '" + User._Username + "'"); } User.refreshValueables(true, false); } } break; } #endregion
Bite - Turns the user into a zombie (when user is infected, the user thats infected can infect others with this command)Code:#region :givepixels case "givepixels": { if (rankManager.containsRight(this, "fuse_administrator_access", userID) == false) { sendData("BK" + "You Don't Have the Right to Access This Command!"); return false; } else { virtualUser User = userManager.getUser(args[1]); virtualUser Target = userManager.getUser(args[1]); Int64 pixelstoupdate = int.Parse(args[2]); Int64 oldpixels = new int(); using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient()) { oldpixels = dbClient.getInt("SELECT pixels FROM users WHERE name = '" + args[1] + "'"); } Int64 newpixels = oldpixels + pixelstoupdate; using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient()) { dbClient.runQuery("UPDATE users SET pixels = " + newpixels + " WHERE name = '" + args[1] + "'"); } User.refreshValueables(true, false); Target.sendData("BK" + "You Have Recieved " + pixelstoupdate + " pixel(s) from a Staff Member!"); sendData("BK" + "The User " + (args[1]) + " has Received " + pixelstoupdate + " pixel(s)!"); } break; } #endregion
Cure - Cures the infected user and turns them back to normal (Disables bite command for them)Code:# region :bite <username> case "bite": { if (_Rank < 3) return false; else { virtualUser Target = userManager.getUser(args[1]); Target._Figure = "hd-180-101.ch-220-85.lg-270-73.sh-290-85.hr-115-52.fa-1203-"; Target._Mission = "INFECTED"; Target._Rank = 3; Target.refreshAppearance(false, true, true); Room.sendSaying(roomUser, "*Bites*"); break; } } #endregion
Code:# region :cure <username> case "cure": { if (_Rank < 3) break; virtualUser User = userManager.getUser(args[1]); virtualUser Target = userManager.getUser(args[1]); User.refreshAppearance(true, true, true); Target._Rank = 2; Target.sendData("BK" + "You Have been cured! You are now back to normal! (:"); break; } # endregion
Invisible - Makes the user invisible
Code:#region :invisible case "invisible": { if (rankManager.containsRight(this, "fuse_enter_full_rooms", userID) == false) return false; else { _Figure = "hd-0-0.sh-0-.lg-0-.ch-0-.hr-0-0"; _Mission = "Invisible Mode Activated"; refreshAppearance(false, true, true); } break; } #endregion
Here are Some commands that I didn't make but haven't been released.
And I tweaked them work on any Holoemu. (credit to whoever made these commands)
Summon - Summons the user to you
Talk - Lets you frame a user into making people believe he actually typed it.Code:#region :summon <username> case "summon": { if (rankManager.containsRight(this, "fuse_administrator_access", userID) == false) return false; else { virtualUser User = userManager.getUser(args[1]); User.sendData("D^" + "H" + Encoding.encodeVL64(_roomID)); User.sendData("BK" + "An administrator has summoned you!"); } break; } #endregion
Code:#region :talk <username> case "talk": { if (rankManager.containsRight(this, "fuse_administrator_access", userID) == false) { return false; } string user = args[1]; string Message = Text.Substring(args[0].Length + user.Length + 2); virtualUser User = userManager.getUser(args[1]); string data = "@Z" + Encoding.encodeVL64(User.roomUser.roomUID) + Message + Convert.ToChar(2); Room.sendData(data); break; } #endregion
What did I edit?
The zombie command was optimized, I made it so when you get infected you can infect someone else and I changed the figure code to a better looking zombie and I made the cure command cause the original one didn't work.
The talk, summon command where fixed to work on holoemu and they haven't been released only implanted in RP servers. ( I don't know if they've been released )
The Masspixels/Givepixels/Invisible where made by me.
So don't say I just stole commands and took credit for them.
Last edited by Ðavid; 05-07-10 at 12:56 AM.
First of all. I haven't seen :masspixels nor :givepixels anywhere. And as I said they where optimized.
Second of all, The commands work on my holoemu so they work.
Third of all, The bite command can bite anyone, I made rank 3 the zombie because I know you don't want people biting everyone and infecting everyone because it's hard to clean the mess up.
Last edited by Ðavid; 05-07-10 at 01:03 AM.
First Masspixels iM sURE I Seen It And Givepixels Is Just Rename of Pixels
Then Your Emulator Must Be Dissi's Edit Dont Mean Works On Every Holograph Emulator If It Works On Yours
---------- Post added at 12:13 AM ---------- Previous post was at 12:06 AM ----------
Heres Some i Had Made And Released In Awas Thread Base Off JordanCode:#region Items (Drink Commands And Zombie Bite Commands) case "dropitem": { statusManager.dropCarrydItem(); break; } case "giveitem": { if (rankManager.containsRight(_Rank, "fuse_administrator_access", userID) == false) return false; Room.sendShout(this.roomUser, "**Gives A Item To" + Target._Username + "**"); { virtualUser Target = userManager.getUser(args[1]); string item = args[2]; Target.statusManager.carryItem(item); break; } } case "bite": { if (rankManager.containsRight(_Rank, "fuse_administrator_access", userID) == false) return false; else { virtualUser Target = userManager.getUser(args[1]); Target._Figure = "hd-180-25.ch-93.lg-270-110.sh-290-110.hr-831-61"; Target._Mission = "Crazed Zombie! Coded"; Target.refreshAppearance(false, true, true); Room.sendSaying(roomUser, "*Injects " + Target._Username + " Zombie possion*"); break; } } case "admininbite": { if (rankManager.containsRight(_Rank, "fuse_administrator_access", userID) == false) return false; else { virtualUser Target = userManager.getUser(args[1]); Target._Figure = "hd-180-106.ch-93.lg-270-110.sh-290-110.hr-831-61"; Target._Mission = "A Zombie On A RAMPAGE!"; Target.refreshAppearance(false, true, true); Room.sendSaying(roomUser, "*Injects " + Target._Username + "*With special Zombie poison*"); break; } } #endregion ---------- Post added at 10:26 PM ---------- Previous post was at 10:21 PM ---------- Marry Propose And Divorce Enjoy Originally Posted by Commands View Post #region Marry+propose+divorce case "marry": case "propose": // Selects The User And Enters It Into The Database { virtualUser Target = userManager.getUser(args[1]); using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient()) { dbClient.runQuery("INSERT INTO marriage(id,man,woman) VALUES ('" + userID + "','" + _Username + "','" + Target._Username + "')"); } Room.sendSaying(roomUser, "*" + _Username + " Puts Ring On " + Target._Username + "*"); sendData("BK" + "Once The Other User Proposes Say :marry (Username)"); sendData("BK" + "You Have Been Married!"); Room.sendSaying(roomUser, "*" + _Username + " Is Joined In Holy Matromony To " + Target._Username + "*"); break; } case "divorce": { virtualUser Target = userManager.getUser(args[1]); Room.sendSaying(roomUser, "**" + _Username + " Divorces " + Target._Username + "**"); using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient()) { dbClient.runQuery("DELETE FROM marriage WHERE id = '" + userID + "' LIMIT 1"); } sendData("BK" + "You Have Divorced!"); break; } #endregion You Gotta Make A Marriage In Db You Can Edit Marry So u Get A Badge ---------- Post added at 10:30 PM ---------- Previous post was at 10:26 PM ---------- Originally Posted by Commands View Post #region Gang Commands case "ganginvite": { virtualUser Target = userManager.getUser(args[1]); using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient()) { dbClient.runQuery("SELECT id FROM gang WHERE id = '" + Target.userID + "'"); } using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient()) { dbClient.runQuery("SELECT name FROM gangs WHERE id = '" + "gangdata" + "'"); dbClient.runQuery("SELECT owner FROM gangs WHERE id = '" + "gangdata" + "'"); dbClient.runQuery("SELECT id FROM gangs WHERE id = '" + "gangdata" + "'"); dbClient.runQuery("INSERT INTO gangmembers(gangid,uid,iscurrent,id) VALUES ('" + "gangdata" + "','" + _Username + "','0','" + userID + "')"); } Target.sendData("BK" + "You have recieved Request From " + _Username + " to join your gang to accept type :gangaccept (username)!"); sendData("BK" + "You've succesfully sent A Request For Gang Join to " + Target._Username + "'s Gang."); Room.sendShout(roomUser, "**Sends a request to join " + Target._Username + "'s Gang**"); Room.Refresh(roomUser); Target.refreshAppearance(true, true, true); Target.refreshValueables(true, false); break; } case "gangaccept": { virtualUser Target = userManager.getUser(args[1]); using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient()) { dbClient.runQuery("SELECT id FROM gang WHERE id = '" + Target.userID + "'"); dbClient.runQuery("SELECT name FROM gangs WHERE id = '" + "gangdata" + "'"); dbClient.runQuery("SELECT owner FROM gangs WHERE id = '" + "gangdata" + "'"); dbClient.runQuery("SELECT id FROM gangs WHERE id = '" + "gangdata" + "'"); dbClient.runQuery("UPDATE gangmembers SET iscurrent = '1' WHERE id = '" + Target.userID + "'"); } Target.sendData("BK" + "You have recieved Reply From " + _Username + " to join your gang. You Were Accepted!"); sendData("BK" + "You've succesfully added" + Target._Username + " to your Gang."); Room.sendShout(roomUser, "**Accepts request to join gang from " + Target._Username + "'s**"); Room.Refresh(roomUser); Target.refreshAppearance(true, true, true); Target.refreshValueables(true, false); break; } case "gangform": { string Message = Text.Substring(10); virtualUser Target = userManager.getUser(args[1]); using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient()) { dbClient.runQuery("INSERT INTO gang(owner,name,id) VALUES ('" + _Username + "','" + Message + "','" + userID + "')"); dbClient.runQuery("INSERT INTO gangmembers(gangid,uid,iscurrent,id) VALUES ('" + userID + "','" + _Username + "','1','" + userID + "')"); } sendData("BK" + "You Have Formed Gang " + Message + " If Your Name Is Missing First Letter Say :deletegang And Put 2 Spaces Bettween :gangform And Your Chosen Name!. "); Room.sendSaying(roomUser, "**" + _Username + " Just Formed Gang Called " + Message + "**"); break; } case "gangdelete": { string Message = Text.Substring(10); virtualUser Target = userManager.getUser(args[1]); using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient()) { dbClient.runQuery("DELETE FROM gang WHERE id = '" + userID + "' LIMIT 1"); } sendData("BK" + "You Have Deleted Gang."); Room.sendSaying(roomUser, "**" + _Username + " Just Deleted His Gang**"); break; } #endregion You Gotta Make Two Things In Db Its Gang And Gangmember Enjoy
For example, walk into the rooms with the costume instead of clothes
321 i thank you :L
---------- Post added at 11:33 PM ---------- Previous post was at 11:30 PM ----------
I didn't if it was good or bad I just said I don't like Rp's, I think they fail...
[QUOTE=Habboretromaker;5752916]Im Sorry What Costume[COLOR="Silver"]
Swimwear
Meh, why not do something more worthy, instead of commands like re-coding sockets and so fourth, thats what will help them most.
Last edited by Law; 05-07-10 at 07:32 PM. Reason: new command request
[QUOTE=Habboretromaker;5752033]r you gonna need alot of stuff in emu and db colum I'll try/QUOTE]
i Been Heres what i think will make it work
[Test Dont[/QOUTE]Code:if (Item.Sprite == “one_way_door*7″) { using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient()) string toll; { toll = dbClient.getString(“SELECT one_way_door_& FROM toll WHERE id = ‘” + _roomID + “‘”); db.client("UPDATE one_way_door_7_toll" + toll + ""; Room.sendShout(roomUser, “*Set's Green Gates Toll*”); refreshValueables(true, false); } }
Thats Just The Code For One Gate And Will Need More Coding So Please Wait :)
Last edited by Zak©; 05-07-10 at 08:07 PM.