Jump to content

slp13at420

Members
  • Content count

    19
  • Donations

    0.00 GBP 
  • Joined

  • Last visited

  • Days Won

    2

slp13at420 last won the day on May 23 2017

slp13at420 had the most liked content!

Community Reputation

9 Neutral

1 Follower

About slp13at420

  • Rank
    Junior Member

Profile Information

  • Gender
    Male
  • Location
    Pocatello, Idaho

Recent Profile Visitors

323 profile views
  1. slp13at420

    Guild:DepositBankMoney()

    erm rem'd - Turned into a remark line rather than a line of code using `//` in cpp or `--` in lua or `rem` in old old old languages lol no biggie i do know how to make a custom method for Eluna in the core. just wondering if i can just un-remark them so they work for TC or just make it for them.
  2. slp13at420

    Error in lua

    Updated the System and fix WorldDBQuery to AuthDBQuery and dropped the prefix `auth` in the query.
  3. slp13at420

    mangosone I have a problem with Grumbo's Complete VIP System

    k updated the VIP System. tweeked the engine and added a line to each script: if not(ACCT[Paccid]) then Player_Vip_Table(0, player) end; try it out . I did NOT test everything , just used the buff script as a base to test with.
  4. slp13at420

    Guild:DepositBankMoney()

    is it just rem'd out our completely removed? core is TrinityCore.
  5. slp13at420

    Guild:DepositBankMoney()

    while on the subject of my VIP System. someone brought up an issue with the Guild gold perk not working . So i checked for changes in the API and noticed the DepositBankMoney(player, amount) method is nol longer there. Did it get removed?
  6. slp13at420

    mangosone I have a problem with Grumbo's Complete VIP System

    You rang..? lol I'm thinking making a function for RegisterServerEvent 16 on_startup that would get all players and send a call to global function Player_Vip_Table(event, player) for each player in_game. also would need to reload the table with the settings from it too. yea i think it would work.. could just wrap the system loading of settings "ACCT["SERVER"] into a global function that loads during startup as usual but refires on ServerEvent 16 then add a catch 22 line for each script to check if "ACCT[player:GetAcctID()]" exist or ifnot then call Player_Vip_Table() and build the players VIP settings array. I was thinking grabbing all players and building there settings arrays would become a possible busrt of an sql workload vs making them as they become required
  7. slp13at420

    Remove equipped items on death script

    lol yea your right :facepalm:
  8. slp13at420

    Remove equipped items on death script

    tbh would not be to hard to script.. upon death , spawn the empty chest then loop through the victim's complete equipped/unequipped items , delete each one from the victim's inventory then add the same item(new GUID ofc) to the chest's loot table , attach a timer to the chest and despawn or remove the chest after the timer expires.
  9. slp13at420

    Remove equipped items on death script

    although i am from the old days of programming before scripting etiquette , I do want to bring up the point to also work on your art of `code block indentation`. local function RemoveItemsOnDeath (_, killer, killed) local bag = 255; for slot = 0, 18; local item = killed:GetItemByPos( bag, slot ); if item then killed:RemoveItem(item, 1); end end end RegisterPlayerEvent(6, RemoveItemsOnDeath) also you can use `_` to replace a variable name in your function declaration since it's a value not being used in the function so this will send it straight to the garbage collector rather than taking up memory by storing the value.
  10. slp13at420

    Remove equipped items on death script

    Take a look at this sub-script from my VIP System. it rewards a random item from the victims equipped gear to the victor. https://github.com/BlackWolfsDen/Eluna-Grumboz_VIP_System-Complete/blob/master/VIP_pvp_item_reward.lua
  11. slp13at420

    Simple .buff command

    I'm not a guru ... yet @Foereaper, @Rochet2, @Faded and @QQRofl taught me all i know
  12. slp13at420

    Simple .buff command

    ok i made you an example using a simple 2D table to store the buff id's. local command = "buff"; -- here we define "command" as local variable with a string value of "buff". I defined it as a `local` outside any functions so it is localized to this Lua file only. local buff = {}; -- here i define the variable `buff` as an empty table (Without data).again i have defined it as a local outside any functions so it is localized to this Lua file only. buff = {48074,35912,38734,65075,65077,43223,15366,36880,36880,16609,48073,48469,26035}; -- Here I will now store data in the table named `buff`. each id separated by a comma. each spot will be a unique address piece(1,2,3,4,5,6.....) accessed by using the full adress. so to puff a player with buff id '43223' i will use the command `player:AddAura(buff[6], player)` and the player will get buffed with 43223. function buff(event, player, message, Type, lang) if(message:lower() == command)then -- here we chech every chat message (converting it to `lower`case) to see if it matches absolute(==) the string stored in the variable `command`. local entry_id; -- here i am defining a variable i will use ONLY inside this function so when its local inside a function it will be localized to only that function and you can make a new variable inside another function using the same name but different stored data. for entry_id = 1, #buff do -- here i am starting a loop. telling it that entry_id will be from 1 to the max size of the `buff` table (#buff). player:AddAura(buff[entry_id], player); -- now using the full address to pinpoint a location of stored data we will apply the data as a buff to the player. end -- end for when our current loop is complete and increase entry_id +1 or if entry_id value is the max size for the loop then end and exit the loop. player:SendBroadcastMessage("You have been Buffed!") end -- end for the end of our if statement. end -- end of function end. RegisterPlayerEvent(42, buff)
  13. slp13at420

    Simple .buff command

    nice job newbie now lets see you learn how to take it from another newbie buff script and make it an advanced dynamic buff script. oooh like make it so it will buff each class with a group of different buffs or every 10 levels a player gains access to more buff id's... Arrays/Tables are frak'n sooo easy in Lua once you understand how to store data and access the stored data when needed. 3d tables will be just an everyday thing check out my buff command in my VIP System. its setup to issue players buff's depending on VIP level, guild member or if they have an item in inventory. When you stop learning you stop living
  14. slp13at420

    [eluna] grumbo'z mall warz

    Grumbo`z Mall Warz ver.1.0e ever wanted to have a custom's mall that the Ally and Horde had to fight over for control ? well..... look no farther , now you can. you can set up this script to apply to a certain map/zone/area and it will spawn a neutral flag that will give control of the location to a team that manages to get to the flag and tag it. when the flag re-spawns it will represent the controlling team . while the flag is spawned the apposing team can try and reach the flag to tag it. once the flag has been captured it will de-spawn . a completely random timer is generated to re-spawn the flag , this timer is an adjustable feature in the script. with vendor npc's faction set to (35), the vendors will faction change based on the controlling team's faction. For Eluna. includes: 1 lua script. 1 sql file for objects and npc template. demo video : >> Grumbo`z Mall Warz << this is one of my older scripts for Eluna.
  15. slp13at420

    slp13at420

Contact Us

To contact us click here
You can also email us at [email protected]

Privacy Policy | Terms & Conditions

Repositories

The Link to the master list
of MaNGOS repositories:
Copyright © getMaNGOS. All rights Reserved.

This website is in no way associated with or endorsed by Blizzard Entertainment®
×