User Tag List

Page 3 of 3 FirstFirst 1 2 3
Results 15 to 17 of 17

Thread: Command Timer

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



    Join Date
    Dec 2013
    Location
    Idaho
    Posts
    2,492
    XP
    20,134,806
    Level
    500
    Thanks
    1,089
    Thanked 330 Times in 212 Posts
    Quote Originally Posted by Kaev View Post
    Just my opinion about such a function: Players can and will abuse such a function. Nearly losing in arena? Kick that asshat! He's ganking me while i'm leveling? Bye! I know he's in the middle of a hard raid boss? Would be a shame if he would get kicked..
    Even if you tell them that they will get banned for abusing this - They will abuse it sooner or later and fuck up someones day - which will end in one player less on your server each time. Never implement something like that, trust me.

    Granted this was just an example of how-to-add a spam timer to something like a command.
    But yea @Kaev does bring up a point that it doesn't currently check if player is InArena/InBg or whatever like dead/dying lol.


    But I did write an example of how-to-add a multi-check to any Eluna Script:
    Its for Eluna but its pretty easy to convert it over to CPP .
    it uses a bitmask key to allow only specific checks when its called so it doent check for ALL condition just only the conditions you choose to use.

    I would use the target player to cross-check for any conditions met, then that would protect the target. the map/area/zone can be used to check if in-leveling-area.

    https://github.com/BlackWolfsDen/mis...eria_Check.lua

    [CPP] --> https://github.com/BlackWolfsDen/mis...on_Checker.cpp
    Last edited by slp13at420; 09-20-2016 at 03:48 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. #16
    Original Poster
    Sexy Member
    Join Date
    Jun 2014
    Location
    United State
    Posts
    81
    XP
    9,503
    Level
    29
    Thanks
    11
    Thanked 5 Times in 5 Posts
    Yeah I've already added quite a few checks.

    Code:
                    uint32 notSpeakTime = uint32(atoi(delayStr));
    
    		if (uint32(atoi(delayStr) > 30))
    		{
    			handler->SendSysMessage("You cannot mute players in excess of 30 minutes.");
    			handler->SetSentErrorMessage(true);
    			return true;
    		}
    
                    if (target->GetSession()->GetSecurity() >= SEC_MODERATOR)
    		{
    			handler->SendSysMessage("You cannot kick other VIP members or higher rank.");
    			handler->SetSentErrorMessage(true);
    			return false;
    		}
    
    		if (target->InBattleground() || target->InArena())
    		{
    			handler->SendSysMessage("You cannot kick players while they are in a Battleground or Arena Match.");
    			handler->SetSentErrorMessage(true);
    			return true;
    		}
    I actually have two vip ranks, the higher rank is one that is earned from the first. Defining earned would present you with a long list. but the second vip rank is the the one with both commands. if they are will to purchase the first rank, wait some time just to earn the second rank; after all that they are willing to abuse it then its a world we live in lol and its all recorded in a custom db table. theres set rules too, must be a reason. if theres no reason in the db. obv he will be questioned asap or if it gets too much to repeating myself it'll just be immediately revoked.
    Last edited by Visa; 09-20-2016 at 10:07 AM.

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



    Join Date
    Dec 2013
    Location
    Idaho
    Posts
    2,492
    XP
    20,134,806
    Level
    500
    Thanks
    1,089
    Thanked 330 Times in 212 Posts
    Quote Originally Posted by Visa View Post
    Everything is working perfectly. Thank you so so much
    No Prob :D
    Enjoy

    I will go ahead and mark this solved.
    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)

Posting Permissions

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