Author Topic: Donator Mod  (Read 2061 times)

This is a mod created by EV0_ (Me), answering to the call of releasetheblocks (or what's his name).

Features:
  • /commands
    • /makeDonor <target> <donator / sponsor>
    • /undonor <target>
  • Events IfStatusIs [Donator | Sponsor] and VariableTrue/False events.
  • Clan Prefix Tag: [Donator] and [Sponsor]

Hope you like it!
Credit to (Tezuni, Darklight, and Munk?) for making Script_Moderator, which I used little code snippets from for the Auto-Status function.

« Last Edit: January 28, 2015, 02:12:48 PM by EV0_ »

Hm, i guess it will be useful on some popular servers, so that's only place where it really helps. And yes, did you planned to add a gui? I think this add-on would be better with it.

Ide

Uh, kind of a small mistake but a big forgetup.

This mod won't work because there's no server.cs

make a server.cs file and put inside of it

exec("./donors.cs");
exec("./events.cs");


Also the donor variable is only local and you put it in the event.cs, making it so it won't work.

So many errors ;_;

Was this even actually tested?
« Last Edit: January 27, 2015, 11:12:07 AM by Ide »

Great mod! Perhaps you could give the character a crown or something?

Another reason why this mod won't work. fcbn isn't a default function and isn't declared in the add-on. This mod will also bork up all of your server preferences. It also won't remember your donator status because that part was scripted badly.

I highly doubt this mod was even tested.
« Last Edit: January 27, 2015, 11:36:50 AM by jes00 »

Ide

fcbn = findclientbyname(%target);

fcbn = findclientbyname(%target);
Yeah. But the function fcbn does not exist by default and it's not defined in this mod. Meaning that if you're not running a mod that defines it, it won't work.

3 local variables are created in the donate command.

The first one is fine but is never used. The second is never used and is assigned to the value of a global var TSoE::Host which is not declared anywhere and the third is the one which uses the fcbn but has further problems. %host = fcbn(%host) would still not work even if the fcbn function existed because %host was never previously instantiated so it'd just be nothing.

Also if I'm not sure but I don't think msg(%client,%string) is a default function and isn't created in the code.

In the link command they won't be displayed in hyperlinks. I think the rest of it is is fine but I'm 90% sure that's because it's the moderator mod lightly edited.

Ok I'd just like to declare, that this mod was part of a much bigger mod that I made, and that I copied some parts and that I forgot to add some of the important stuff. (Also nobody noticed the msg(); command?).

I will fix this, like, right now.

PS: No wonder Badspot moved this. It was in addons before.

(Also nobody noticed the msg(); command?).
Also if I'm not sure but I don't think msg(%client,%string) is a default function and isn't created in the code.

I was hoping this would tie in with paypal or something to make it completely automated.

did you planned to add a gui? I think this add-on would be better with it.
I might actually do that in V2!