PDA

View Full Version : Et idea


Scorpz
02-26-2002, 03:08 AM
Why don't they add a easy script that lets the Et give out money, like if a player wins the event team says

winner 50 account name


(something like that)
That would make the winner have 50g, The max they could go up to 100g, and they can only use it once a hour for that event, so 2 of the same events will not happen. If a event team uses it for them selfs they will get fired, Have something like that =/

TDK_RC6
02-26-2002, 04:17 AM
that would be really easy

have a db npc with a flag, this.lastused and this.log


if (playerchats&&startswith(give,#c)&&timevar-strtofloat(#s(this.lastused))>=720) {
tokenize #c;
if (tokenscount==3&&strtofloat(#t(2)) in |1,100|) {
with (getplayer(#t(1))) {
playerrupees+=strtofloat(#t(2));
}
addstring this.log,"#a gave #t(1) #t(2)";
}
setplayerprop #c, ;
setstring this.lastused,#v(timevar);
}



im going to test it now
i'll let you know how it works

TDK_RC6
02-26-2002, 04:27 AM
it works pretty good

you should add error checking and stuff, but besides that, its pretty cool

Scorpz
02-26-2002, 05:19 AM
*blinks*

woow

I did'nt know someone was going to make it =) thankz, I hope they use it now. =)

Brad
02-26-2002, 05:59 AM
It would be abused and et members would give themselves like 10000k.

DarkHero2002
02-26-2002, 06:11 AM
i agree with Brad. I hope the NPC is ment for them to take it out of their own money. but sooner or later there will be a hack and like the npc will give people lotz of money/

AlexH
02-26-2002, 06:36 AM
Originally posted by Brad
It would be abused and et members would give themselves like 10000k.

Thats why if it was added it would have a log kept like the bomy logs. Then we could see whos getting the money and how much of it.

DragonX2
02-26-2002, 06:50 AM
Originally posted by Brad
It would be abused and et members would give themselves like 10000k.

If you read, the max amount of gralats he said it should go up to is 100, not 10000k. :rolleyes:

TDK_RC6
02-26-2002, 07:21 AM
then here, i'll add some things to it


if (playerchats&&startswith(give,#c)&&timevar-strtofloat(#s(this.lastused))>=720) {
tokenize #c;
if (tokenscount==3&&strtofloat(#t(2)) in |1,100|&&playerrupees>=strtofloat(#t(2))&&!strequals(#t(1),#a)) {
with (getplayer(#t(1))) {
with (getplayer(#a)) {
playerrupees-=strtofloat(#t(2));
}
playerrupees+=strtofloat(#t(2));
}
addstring this.log,"#a gave #t(1) #t(2)";
}
setplayerprop #c, ;
setstring this.lastused,#v(timevar);
}

i'll go test that :P

TDK_RC6
02-26-2002, 08:08 AM
here is the whole thing i made


if (playerchats&&startswith(~give,#c)) {
tokenize #c;
if (tokenscount==3) {
if (timevar-strtofloat(#s(this.lastused))>=720) {
if (!strequals(#t(1),#a)) {
if (strtofloat(#t(2)) in |1,100|) {
setstring this.give,#t(2);
with (getplayer(#t(1))) {
playerrupees+=strtofloat(#t(2));
say2 You recieved #t(2) gralats.;
with (getnpc(Event)) {
setstring this.give,done;
}
}
if (strequals(#s(this.give),done)) {
with (getplayer(#a)) {
playerrupees-=strtofloat(#t(2));
}
}
addstring this.log,#a gave #t(1) #t(2) gralats;
setstring this.lastused,#v(timevar);
} else {
say2 Must be between 1 and 100 gralats.;
addstring this.log,ERROR: #a tried to gave #t(1) #t(2) gralats; }
} else {
say2 You can't give yourself gralats.;
addstring this.log,ERROR: #a tried to give themself gralats; }
} else {
say2 This event has already been used#bwithin the last hour. Please wait.;
addstring this.log,ERROR: #a tried to give gralats withing less than a hour; }
} else { say2 Wrong syntax.; }
setplayerprop #c, ;
}

Googi
02-26-2002, 09:28 AM
Somebody some way will find a way to abuse it.

TDK_RC6
02-26-2002, 10:10 AM
not possible

you'll have to have that amount of gralats

TDK_RC6
02-26-2002, 10:13 AM
whoops, forgot to say

u should add a thing in there for guild checking, so you must be in Events Team or whatever, but isnt hard

craig_bomy
02-27-2002, 03:20 AM
Googi will get his friends to accept the money, they will give it back to him, and he will get back off his tag. Also, some of the more untrustworthy ETs who have multiple accounts might give themselves money. It would be helpful, but I dont think it would work very well

TDK_RC6
02-27-2002, 04:13 AM
the ET must have the money to give it

:P

so they cant give free money

cya
03-20-2002, 02:03 AM
Just have it like this,

1. You must HAVE the money first.

2. Must have ET tag on.

3. Can not give more than 100g at a time.

4. Wont let you give to urself.

5. LOG IT.

6. Also, put something in the log of who it was given to.

7. Make the ET say something for what event the money is for and log that.



So the ET would say something like "give 50 to cya for survivor"

Simple! No money gets stolen!

The log could say
"ETNAME gave 50 to cya for survivor on 03/19/02"

HVOstroHS
04-04-2002, 04:44 AM
Originally posted by craig_bomy
Googi will get his friends to accept the money, they will give it back to him, and he will get back off his tag. Also, some of the more untrustworthy ETs who have multiple accounts might give themselves money. It would be helpful, but I dont think it would work very well

UNTRUSTY ETS?! YOU DON'T SAY?! =\ 1/2 OF THE ET STAFF IS UNTRUSTWORTHY.. Some are good tho ;)

fenderbender2965
04-05-2002, 06:49 AM
Originally posted by HVOstroHS


UNTRUSTY ETS?! YOU DON'T SAY?! =\ 1/2 OF THE ET STAFF IS UNTRUSTWORTHY.. holy rocks tho ;)