• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

Comunity input for a Premium System

slp13at420

Mad Scientist
No, what I meant was that you could make a 5th method called something like 'HandlePremiumModifier',
and call that method from the other methods. You can do this because those methods do the exact same
thing. So basically one generic method, which is called from the OnDamage, ModifyMeleeDamage and
ModifySpellDamageTaken methods.

By doing this, you will get rid of code that does the exact same thing.

oooohhh ok lol duh k gotcha

x = PREM::IncreaseValueWithOffset(Player* player, uint32 val)

n just use that rather than same code each event. lol
n updated a couple to use them too in player events
and a couple misc that can use it too.
added 1 method for increase and 1 for decrease.

tnx
:top:
 
Last edited:

slp13at420

Mad Scientist
also prompted me to skim thru and try and condense some lines down .


I also noticed that this script has a lot of commands of which every single command has
to check whether the player is premium or not.
I am not sure if there's a way to deal with this, using the existing
command system (you'd think there has to be..).
However, as an alternative solution I wrote some code which will reduce
the need to check if a player is a premium player.

Basically what does code does is creating individual handlers for every command.
Before any of the command handlers is executed, it will go through a main
command handler, which will check for things that are common for each
individual command handler.

Script: http://paste2.org/nGaxhNDO

Of course you can do it your way and use the original command system.
It's just that I don't like to repeat code, in this case the check
if a player is premium =P.

Hope this was helpful,

Grandelf.

yea I agree, but atm this is the only way I knew to handle the check . now will that support multiple types of checks since there are a few admin commands too(premium not required for admin)
I need to sit down this weekend and just read thru the script :)
 
Last edited:

slp13at420

Mad Scientist
[MENTION=3011]Minodevs[/MENTION] released this tutorial today --> http://emudevs.com/showthread.php/5806-Tutorials-Ghosts-Starting-Near-Cropse?p=38728#post38728

I thought this would be a nice addition to Premium perks "allow ghost near corpse" (outside bg's ofc).

I dunno if this can be added or not , maybe some mods will be needed.

But I will ask the community what you think .

best 2 out of 3 thumbs up/down. "Should I attempt to add this?".

:RpS_thumbup: - 0.
:RpS_thumbdn: - 1.
 
Last edited:

Syphex

Exalted Member
[MENTION=3011]Minodevs[/MENTION] released this tutorial today --> http://emudevs.com/showthread.php/5806-Tutorials-Ghosts-Starting-Near-Cropse?p=38728#post38728

I thought this would be a nice addition to Premium perks "allow ghost near corpse" (outside bg's ofc).

I dunno if this can be added or not , maybe some mods will be needed.

But I will ask the community what you think .

best 2 out of 3 thumbs up/down. "Should I attempt to add this?".

I would say no, as it could be abused for world pvp, pvp farming etc.
I'd say that if they arent in pvp or in an instanced area this may be okay.

People will exploit everything now days as good as they can.
 

Wolord

Exalted Member
- Add Premiums ability to summon & appear to a location (not BGs & Arenas)
- Add all Players [.toggle summon on/off] & [.toggle appear on/off] to allow Premiums to summon/appear them or not.
- Add Premiums respawn command with a timer.
- Add Premiums [.learn all my spells/talents] command.
- Add Premium online command to show Premiums who are online in the game.
 
Last edited:

slp13at420

Mad Scientist
- Add Premiums ability to summon & appear to a location (not BGs & Arenas)
- Add all Players [.toggle summon on/off] & [.toggle appear on/off] to allow Premiums to summon/appear them or not.
- Add Premiums respawn command with a timer.
- Add Premiums [.learn all my spells/talents] command.

ooh right on didn't even think bout spells/talents and summon/appear
Tnx

8-14-2016 added .prem learn all my spells
8-14-2016 added .prem unlearn all my spells
these will learn/unlearn the player there class spells.


8-14-2016 added .prem appear [player name]
allows premium players to teleport to other players.

8-14-2016 added .prem dnd appear on/off
allows a Premium player to block/unblock other Premium players from teleporting to them.

tnx [MENTION=322]Wolord[/MENTION]
 
Last edited:
Top