User Tag List

Page 2 of 8 FirstFirst 1 2 3 4 5 6 ... LastLast
Results 8 to 14 of 50

Thread: [CPP] Grumbo'z VIP System

  1. #8
    Original Poster
    Mad Scientist <span style='color: #008000'><span class='glow_006400'>slp13at420</span></span>'s Avatar



    Join Date
    Dec 2013
    Location
    Idaho
    Posts
    2,532
    XP
    20,135,356
    Level
    500
    Thanks
    1,100
    Thanked 337 Times in 217 Posts
    Quote Originally Posted by Beater View Post
    Nice BlackWolf
    Tnx random citizen
    Last edited by slp13at420; 02-03-2016 at 09:21 AM.
    Achievements:
    Shopper Got a Sticky! Member 1 year registered Level XL Level D
    Awards:
    Pot Head LOL Raffle Winner Top Tagger Donator Hangman Scripter Repacker Drunk Support Member of Staff Da Bomb!
    "Cuz PvP's better with a bag 'o' weed"
    !! King Spade !!

    -Guild Plot System-
    Grumbo'z Guild Warz


    -VIP System-
    Grumbo'z VIP System

  2. #9
    Emulation Addict <span style='color: #FF0000'><span class='glow_FF0000'>ALILP</span></span>'s Avatar
    Join Date
    Dec 2015
    Location
    Iran
    Posts
    76
    XP
    684
    Level
    6
    Thanks
    20
    Thanked 69 Times in 34 Posts
    Hi my friend can i use this vip system for Tc 2.4.3?
    Achievements:
    Referrer 3 months registered Level V

  3. #10
    Original Poster
    Mad Scientist <span style='color: #008000'><span class='glow_006400'>slp13at420</span></span>'s Avatar



    Join Date
    Dec 2013
    Location
    Idaho
    Posts
    2,532
    XP
    20,135,356
    Level
    500
    Thanks
    1,100
    Thanked 337 Times in 217 Posts
    i havnt tried it on any other patch . the core should work but you may need to do the stat edits differently.
    Achievements:
    Shopper Got a Sticky! Member 1 year registered Level XL Level D
    Awards:
    Pot Head LOL Raffle Winner Top Tagger Donator Hangman Scripter Repacker Drunk Support Member of Staff Da Bomb!
    "Cuz PvP's better with a bag 'o' weed"
    !! King Spade !!

    -Guild Plot System-
    Grumbo'z Guild Warz


    -VIP System-
    Grumbo'z VIP System

  4. #11
    Original Poster
    Mad Scientist <span style='color: #008000'><span class='glow_006400'>slp13at420</span></span>'s Avatar



    Join Date
    Dec 2013
    Location
    Idaho
    Posts
    2,532
    XP
    20,135,356
    Level
    500
    Thanks
    1,100
    Thanked 337 Times in 217 Posts
    -Update 2-1-2016-

    Added new features:

    [1] Extra levels per VIP rank.
    • amount per VIP rank can be adjusted in the conf.
    • this can be turned off/on in the conf.

    [2] Item VIP ranks.
    • Now items can require a minimum VIP rank to equip them.
    Last edited by slp13at420; 02-02-2016 at 12:01 AM.
    Achievements:
    Shopper Got a Sticky! Member 1 year registered Level XL Level D
    Awards:
    Pot Head LOL Raffle Winner Top Tagger Donator Hangman Scripter Repacker Drunk Support Member of Staff Da Bomb!
    "Cuz PvP's better with a bag 'o' weed"
    !! King Spade !!

    -Guild Plot System-
    Grumbo'z Guild Warz


    -VIP System-
    Grumbo'z VIP System

  5. The Following User Says Thank You to slp13at420 For This Useful Post:


  6. #12
    Super Baked <span style='color: #4B0082'><span class='glow_32CD32'>kolakocide</span></span>'s Avatar
    Join Date
    Sep 2014
    Location
    USA, PA
    Posts
    262
    XP
    856,661
    Level
    162
    Thanks
    60
    Thanked 24 Times in 24 Posts
    Good release ;D. Isn't this in Lua too! So great release

  7. The Following User Says Thank You to kolakocide For This Useful Post:


  8. #13
    Original Poster
    Mad Scientist <span style='color: #008000'><span class='glow_006400'>slp13at420</span></span>'s Avatar



    Join Date
    Dec 2013
    Location
    Idaho
    Posts
    2,532
    XP
    20,135,356
    Level
    500
    Thanks
    1,100
    Thanked 337 Times in 217 Posts
    Quote Originally Posted by kolakocide View Post
    Good release ;D. Isn't this in Lua too! So great release
    Tnx :D
    yea this is like the Eluna version :D
    justa bigger-better-stronger version.

    I just used my Eluna version for reference and wrote the CPP damn near verbatim:D
    Last edited by slp13at420; 02-29-2016 at 08:10 AM.
    Achievements:
    Shopper Got a Sticky! Member 1 year registered Level XL Level D
    Awards:
    Pot Head LOL Raffle Winner Top Tagger Donator Hangman Scripter Repacker Drunk Support Member of Staff Da Bomb!
    "Cuz PvP's better with a bag 'o' weed"
    !! King Spade !!

    -Guild Plot System-
    Grumbo'z Guild Warz


    -VIP System-
    Grumbo'z VIP System

  9. #14
    Original Poster
    Mad Scientist <span style='color: #008000'><span class='glow_006400'>slp13at420</span></span>'s Avatar



    Join Date
    Dec 2013
    Location
    Idaho
    Posts
    2,532
    XP
    20,135,356
    Level
    500
    Thanks
    1,100
    Thanked 337 Times in 217 Posts
    Update 02-28-2016:

    I Added this to the Eluna Lua Engine so now you have a range of Eluna Methods to work with.

    This requires ofc you have the VIP Engine (ver 2.05+) completely installed.


    demo script with these custom VIP methods in use:
    Code:
    -- Global Eluna methods
    
    -- Global Eluna methods
    local vip_max = GetVIPMAX();
    local vote_cnt = GetVIPVOTECOUNT();
    local coin_id = GetVIPCOINID();
    local stone_id = GetVIPSTONEID();
    local MG_id = GetVIPMGID();
    local offset = GetVIPOFFSET();
    local talent_bonus = GetTALENTBONUS();
    local level_bonus = GetLEVELBONUS();
    
    print("MAX VIP:"..vip_max);
    print("VOTE COUNT:"..vote_cnt);
    print("COIN ID:"..coin_id);
    print("STONE ID:"..stone_id);
    print("MG ID:"..MG_id);
    print("VIP OFFSET:"..offset);
    print("TALENT BONUS:"..talent_bonus);
    
    	if(GetVIPVOTE_ENABLE() == true)then
    		print("VOTE_ENABLE:TRUE");
    	end
    	if(GetVIPVOTE_ENABLE() == false)then
    		print("VOTE_ENABLE:FALSE");
    	end
    	
    if(GetLEVELBONUS_ENABLE())then
    	print("LEVEL BONUS_ENABLE:TRUE");
    end
    if not(GetLEVELBONUS_ENABLE())then
    	print("LEVEL BONUS_ENABLE:FALSE");
    end
    
    print("LEVEL BONUS:"..level_bonus);
    	
    function Player_Methods(event, player)-- Player Eluna methods
    
    local vip = player:GetVIP();
    local mg = player:GetMG();
    local votes = player:GetVOTES();
    
    	print(player:GetName()..":");
    	print("VIP:"..vip);
    	print("MG:"..mg);
    	print("VOTES:"..votes);
    
    -- mod VIP
    	player:SetVIP(1);
    	
    	print("-VIP:"..player:GetVIP());
    
    	player:SetVIP(vip);
    	
    	print("+VIP:"..player:GetVIP());
    
    -- mod mg
    	player:SetMG(1);
    	
    	print("-MG:"..player:GetMG());
    
    	player:SetMG(mg);
    	
    	print("+MG:"..player:GetMG());
    
    -- mod votes
    	player:SetVOTES(1);
    	
    	print("-VOTES:"..player:GetVOTES());
    
    	player:SetVOTES(votes);
    	
    	print("+VOTES:"..player:GetVOTES());
    end
    
    RegisterPlayerEvent(3, Player_Methods)
    
    function ItemVIP(event, player, item, bag, slot)-- Item Eluna methods
    
    local item_vip = item:GetItemVIP();
    
    	print("");
    	print("ITEM VIP:"..item_vip);
    	
    	item:SetItemVIP(1);
    	print("-:"..item:GetItemVIP());
    	
    	item:SetItemVIP(4);
    	print("+:"..item:GetItemVIP());
    	
    	item:SetItemVIP(item_vip);
    	print("RESET VIP:"..item:GetItemVIP());
    	
    end
    
    RegisterPlayerEvent(29, ItemVIP)
    
    Also Added the DIFF link at the bottom of the main post. :D

    • Global Methods:
      • Getters
        • GetVIPMAX(); returns uint8 max VIP rank value.
        • GetVIPVOTE_ENABLE(); returns bool value of ?can votes increase VIP rank?.
        • GetVIPVOTECOUNT(); returns uint32 value of ?how many votes change VIP rank?.
        • GetVIPCOINID(); returns the uint32 item id used for the VIP Coins.
        • GetVIPSTONEID(); returns the uint32 item id used for the VIP stone.
        • GetVIPMGID(); returns the uint32 item id used for the Magic Gold.
        • GetVIPOFFSET(); returns float value used to influence stats.
        • GetTALENTBONUS(); returns the uint8 values of how many extra TP per VIP rank.
        • GetLEVELBONUS(); returns the uint8 value of how many extra levels per VIP rank.
        • GetLEVELBONUS_ENABLE(); returns bool value of ?allow extra levels per VIP rank?.

      • Setters
        • No setters since all these values are set in the worldserver.conf file.

    • Player Methods:
      • Getters
        • player:GetVIP(); returns uint8 value of a player's VIP rank;
        • player:GetMG(); returns a uint32 value of a player's total stored mg.
        • player:GetVOTES(); returns uint32 value of a players total votes.

      • Setters
        • player:SetVIP(uint8_value); changes a players VIP rank to the provided uint8 value .
        • player:SetMG(uint32_value); sets a player's stored mg value to the provided uint32 value .
        • player:SetVOTES(uint32_value); changes a players total vote count to the provided uint32 value .

    • Item Methods:
      • Getters
        • item:GetItemVIP(uint32_item_id); returns the uint8 value of an item's VIP

      • Setters
        • item:SetItemVIP(uint8 vip); changes the item's VIP rank to the provided uint8 value .


    Last edited by slp13at420; 03-02-2016 at 03:40 AM.
    Achievements:
    Shopper Got a Sticky! Member 1 year registered Level XL Level D
    Awards:
    Pot Head LOL Raffle Winner Top Tagger Donator Hangman Scripter Repacker Drunk Support Member of Staff Da Bomb!
    "Cuz PvP's better with a bag 'o' weed"
    !! King Spade !!

    -Guild Plot System-
    Grumbo'z Guild Warz


    -VIP System-
    Grumbo'z VIP System

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •