View Full Version : Pickpocket in Lesane Store
GenSec
05-06-2002, 10:00 PM
As promised It's new version of steal addon to the Lesane Store.
At last the crime on my board is under control.
I translated all templates, but It's not the best english version.
Hope the instruction is full and understandable.
Have a fun.
HAHAHAHAHA Interesting hack man. I never though of a theif system. Good on you. Not to sure if this is added but if a users trys to steal from another user and fail they hould get points taken from them and given to the other user.
Xanthine
05-07-2002, 06:29 PM
lol
Admin
05-07-2002, 06:45 PM
LOL What's next, terrorists?
DjSap
05-07-2002, 07:03 PM
lol this is gonna get my vote on hack of the month :)
AnkisethGallant
05-07-2002, 07:32 PM
GenSec, cool, but shouldn't you at least give me credit for the suggestion in the Store Thread ;)
I don't use the store anymore, but if I did, I guarantee I'd be using this.
Originally posted by FireFly
LOL What's next, terrorists?
Shhhhhh! Dont give yourself away :bandit:
inetd
05-07-2002, 08:25 PM
What does this hack do?
AnkisethGallant
05-07-2002, 08:50 PM
If you have the Lesane Store hack, it gives your users the ability to Pickpocket others.
Velocd
05-07-2002, 08:55 PM
How so? Like a probability of stealing from someone, and if you fail you lose money or your chances of stealing go lower? And by success it goes up?
AnkisethGallant
05-07-2002, 09:01 PM
I think it is just random that you are successful. If you fail, you either lose money or get banned for a short amount of time (at least that was the original idea). I don't know how exactly he wrote it in though.
i was actually going to make this a while ago... with the shinra points hack.... i wasnt too good at php then... well now i guess i dont have too ... :) lol
GenSec
05-08-2002, 05:40 AM
Originally posted by inetd
What does this hack do?
If you have some of the points system just as in Lesane Store
you can try to steal others points.
If you successed You have points but lose some karma
if you failed you pay penalty (the same amount you try to steal)
If you have negative point balance you can't write until anybody pay ransom or bail for you
if you steal from insurant user you pay 20% bribe to insurance agents and victim receive insurance cover
if you try to steal from mafia protected user you and victim pay a half to godfather
In any case thief waste some karma exept he stealing no more than 5 points a time
After the first terror night with 927 HIJACKING I added some limits
new user (less eq. 100 posts) can't try to steal
ban to steal from user who has 100 points and less
ban to steal last 20 points
You can easily tune this rules for you.
GenSec
05-08-2002, 05:50 AM
Originally posted by FireFly
LOL What's next, terrorists?
Lumber cump in Sibirian. Lol
GenSec
05-08-2002, 05:53 AM
Originally posted by AnkisethGallant
GenSec, cool, but shouldn't you at least give me credit for the suggestion in the Store Thread ;)
I don't use the store anymore, but if I did, I guarantee I'd be using this. Sure. I just don't want to mess store thread.
Lesane
05-08-2002, 07:54 AM
Very nice GenSec, i will install this addon later. Thanks.
dadymac
05-08-2002, 08:33 AM
there are some errors in the file:
$stealm should be $stealmoney towards the bottom. (you can just search for "$stealm;")
also, the two lines that give pms to the admin about stealing is causing trouble, never worked from the start, just threw sql errors out. i just commented them out since i dont want my pm box flooded anyways.
maybe if it could post to one thread in a forum that has access only to mods.
also, which version of the karma hack did you use? cuz there is no KARMA in user or where it was in the version i installed.
GenSec
05-08-2002, 09:24 AM
Originally posted by dadymac
there are some errors in the file:
$stealm should be $stealmoney towards the bottom. (you can just search for "$stealm;")
also, the two lines that give pms to the admin about stealing is causing trouble, never worked from the start, just threw sql errors out. i just commented them out since i dont want my pm box flooded anyways.
maybe if it could post to one thread in a forum that has access only to mods.
also, which version of the karma hack did you use? cuz there is no KARMA in user or where it was in the version i installed.
$stealm is allright. It's from template. Believe me.
PM's from ADMIN to the victim. Don't know. It works on my board. The only difference in language. I try to study
I used hardly changed version of some karma hack which someone asked me to tune. I don't know the original hack and didn't see it here. In any case It's just some field in the user table. If you have anything similar you can use it or delete.
ZiRu$
05-08-2002, 03:28 PM
thanks i will install this add-on later
jly2klee
05-09-2002, 01:45 AM
Well, I installed successfully.. but when I attempt to steal.. after the conformation page.. I get a DB error..
Database error in vBulletin 2.2.5:
Invalid SQL: UPDATE user SET storep=storep- WHERE userid=
mysql error: You have an error in your SQL syntax near 'WHERE userid=' at line 1
mysql error number: 1064
dadymac
05-09-2002, 03:01 AM
exactly what i was getting til i change $stealm to $stealmoney.
might also try setting the cost of stealing to 1
booty
ExcErr
05-09-2002, 05:40 AM
gensec, there are three lines
INSERT INTO store VALUES (NULL, 'steal', 'Crime and punishment', '0', '0', 'thief.gif', 'It is not caught - not the thief', 'Y');
INSERT INTO store VALUES (NULL, '+++++', 'Safeguard', '100', '0', 'godfather.gif', 'We protect your money', 'Y');
INSERT INTO store VALUES (NULL, 'insurance', 'Insurance', '100', '0', 'insurance.gif', 'Buy insurance', 'Y');
have you got this gif(in bold)? can you give it for us?
thx
dadymac
05-09-2002, 10:15 PM
ack, sometimes people try to steal, and meet all requirements, and still say dont take last 20 or whatever.
Marshalus
05-10-2002, 03:15 PM
GenSec, could you please post a link or files of what Karma hack it was that you used?
GenSec
05-13-2002, 07:05 AM
Originally posted by Marshalus
GenSec, could you please post a link or files of what Karma hack it was that you used? As I said I use personaly tuned version of karma hack which was provided by one man who asked don't public it. Sorry.
But any karma or point hack has in user database similiar field.
GenSec
05-13-2002, 07:17 AM
Originally posted by ExcErr
gensec, there are three lines
INSERT INTO store VALUES (NULL, 'steal', 'Crime and punishment', '0', '0', 'thief.gif', 'It is not caught - not the thief', 'Y');
INSERT INTO store VALUES (NULL, 'mafia', 'Safeguard', '100', '0', 'godfather.gif', 'We protect your money', 'Y');
INSERT INTO store VALUES (NULL, 'insurance', 'Insurance', '100', '0', 'insurance.gif', 'Buy insurance', 'Y');
have you got this gif(in bold)? can you give it for us?
thx
GenSec
05-13-2002, 07:37 AM
Originally posted by jly2klee
Well, I installed successfully.. but when I attempt to steal.. after the conformation page.. I get a DB error..
Database error in vBulletin 2.2.5:
Invalid SQL: UPDATE user SET storep=storep- WHERE userid=
mysql error: You have an error in your SQL syntax near 'WHERE userid=' at line 1
mysql error number: 1064
Sorry. Translating I public the old store_steal_accept template. Just updated.
dadymac
05-13-2002, 04:06 PM
new error:
Database error in vBulletin 2.2.5:
Invalid SQL: INSERT INTO store_file (trid,date,userid,towhomid,amount,action) VALUES (NULL,'1021309153','1','155','10','steal')
mysql error: Table 'dadymac_neo.store_file' doesn't exist
mysql error number: 1146
Date: Monday 13th of May 2002 10:59:13 AM
Script: http://forums.dadymac.com/forum/forum/store.php
Referer: http://forums.dadymac.com/forum/store.php
appears that store_file was never specified or was this from the karma hack??
i commented out this line and it still works, also, it seems to be (a lot) easier to steal with this version.
GenSec
05-14-2002, 05:19 AM
Originally posted by dadymac
appears that store_file was never specified or was this from the karma hack??
i commented out this line and it still works, also, it seems to be (a lot) easier to steal with this version.
You are right. Store_file is used only in my store.
Delete it as I did :classic:
I'm using store_file to store users transactions.
Also I recommend to add insurance and godfather (or any other internal user account) in safe (unstealing) space. Just as admin account: if ($getduser[usergroupid]=="6") { // don't steal from admin. Move those accounts to admin usergroup (usergroupid=6). Or replace to if ($getduser[usergroupid]=="6" OR $getduser[userid]=='INSURANCEID') {
Itworx4me
05-16-2002, 03:51 AM
Anyway you can edit the first post with all the new fixes? One other thing can you post the addon with out the Karma hack in it?
Thanks
GenSec
05-16-2002, 05:36 AM
Originally posted by Itworx4me
Anyway you can edit the first post with all the new fixes? One other thing can you post the addon with out the Karma hack in it?
Thanks Yes i did.
And without karma:
dadymac
05-16-2002, 08:58 AM
just wanted to say that with that one line of store_file commented out, this hack is working 100%.
thanks for looking over it, my users love it (and loathe it...heh)
Itworx4me
05-16-2002, 09:44 PM
Thank you very much GenSec. I appreciate what you did.
Itworx4me
05-16-2002, 10:16 PM
ok
I get this error when trying to modify the database
Error
SQL-query :
INSERT INTO store VALUES (NULL, 'steal', 'Crime and punishment', '0', '0', 'thief.gif', 'It is not caught - not the thief', 'Y')
MySQL said:
Column count doesn't match value count at row 1
?
?
?
GenSec
05-17-2002, 05:46 AM
Originally posted by Itworx4me
ok
Error
SQL-query :
INSERT INTO store VALUES (NULL, 'steal', 'Crime and punishment', '0', '0', 'thief.gif', 'It is not caught - not the thief', 'Y')
? I can't say what is wrong with your database. But you can try one more, or just use PHPmyADMIN to add the line directly
ULTIMATESSJ
05-19-2002, 01:10 PM
i'm trying to install this hack, in the instructions it says
Let say first is INSURANCE and has INSURANCEID.
The second is GODFATHERID and has GODFATHERID.
what does this mean
Roxie
05-20-2002, 03:36 AM
Originally posted by Itworx4me
ok
I get this error when trying to modify the database
Error
SQL-query :
INSERT INTO store VALUES (NULL, 'steal', 'Crime and punishment', '0', '0', 'thief.gif', 'It is not caught - not the thief', 'Y')
MySQL said:
Column count doesn't match value count at row 1
?
?
?
I also get this error
:cross-eyed:
Roxie
05-20-2002, 03:48 AM
Okay...
AT the end add '0'
example:
INSERT INTO store VALUES (NULL, 'steal', 'Crime and punishment', '0', '0', 'thief.gif', 'It is not caught - not the thief', 'Y', '0')
Roxie
05-20-2002, 04:15 AM
I'm getting this error:
Database error in vBulletin 2.2.5:
Invalid SQL: UPDATE user SET storep=storep+100 WHERE userid=GODFATHERID
mysql error: Unknown column 'GODFATHERID' in 'where clause'
mysql error number: 1054
GenSec
05-20-2002, 06:11 AM
Originally posted by ULTIMATESSJ
i'm trying to install this hack, in the instructions it says
what does this mean
Originally posted by Roxie
I'm getting this error:
Database error in vBulletin 2.2.5:
Invalid SQL: UPDATE user SET storep=storep+100 WHERE userid=GODFATHERID
mysql error: Unknown column 'GODFATHERID' in 'where clause'
mysql error number: 1054
It means you should to register new user with nick "Godfather",
which userid="GODFATHERID". The same with user "INSURANCE".
Roxie
05-20-2002, 12:55 PM
I don't understand what you mean by "which userid="GODFATHERID".
This is a great hack by the way if I could get it to work correctly.
GenSec
05-20-2002, 01:11 PM
Originally posted by Roxie
I don't understand what you mean by "which userid="GODFATHERID".
This is a great hack by the way if I could get it to work correctly. After you registered user GODFATHER, you will know his userid and replace "GODFATHERID" in hack to this number (say 13435 as your userid on vbulletin.org).
Roxie
05-20-2002, 01:14 PM
ahhhhh...okay. That makes sense now, let me try! :D
Roxie
05-20-2002, 01:46 PM
when my users try to steal they get a blank page. :(
it just says vbulletin message, but nothing is there.
GenSec
05-20-2002, 02:04 PM
Originally posted by Roxie
when my users try to steal they get a blank page. :(
it just says vbulletin message, but nothing is there.
I guess It means you haven't one of the templates. Let me link please to look for your problem
Roxie
05-20-2002, 02:10 PM
here is my board http://www2.cyberpixels.com/~dayum/odb/index.php?
Will you be able to see it without registering.
clicking insurance and godfather also gives blank page.
I have added all the templates using the template hack.
Roxie
05-20-2002, 02:20 PM
GOT IT WORKING! Sorry I am such a dunce. yay! Thanks for your time! This hack rocks!
Roxie
05-20-2002, 03:30 PM
argh! Now the only problem I have is that it won't let me steal. It always says I am too young. I have it set so that the thief has to have at least $5. I have that and it still won't let me steal. :(
GenSec
05-20-2002, 03:44 PM
Originally posted by Roxie
argh! Now the only problem I have is that it won't let me steal. It always says I am too young. I have it set so that the thief has to have at least $5. I have that and it still won't let me steal. :( There is a limit: if ($bbuserinfo[posts]<100 ) { // don't allow new users to steal -- they need to have more than 100 posts! It's from my board exptrience.
User need to have 100 posts before to steal.
Because some users can create special new account to steal!
You can change it.
Roxie
05-20-2002, 04:02 PM
The only line that is similar to that is :
if ($bbuserinfo[posts]<100) { // don't allow new users to steal -- they need to have more than $100!
I changed to 5, still not working.
GenSec
05-20-2002, 04:20 PM
Originally posted by Roxie
The only line that is similar to that is :
if ($bbuserinfo[posts]<5 { // don't allow new users to steal -- they need to have more than $100!
I changed to 5, still not working.
Did you change it to if ($bbuserinfo[posts]<5) { in both two places?
Roxie
05-20-2002, 05:07 PM
This is what I have:
// ###################### Start steal Lookup ###########
if ($action=="steal") {
if ($bbuserinfo[posts]<50) { // victim should have more than $50
eval("standarderror(\"".gettemplate('store_steal_cannot')."\");");
}
$contest = $DB_site->query_first("SELECT * FROM store WHERE action='steal'");
$storeid=$contest[id];
$title=$contest[title];
$cost=$contest[costs];
eval("dooutput(\"".gettemplate("store_steal_lookup")."\");");
}
// ###################### Start steal How Much? #######################
if ($action=="stealmoney") {
if ($bbuserinfo[posts]<5) { // don't allow new users to steal -- they need to have more than $100!
eval("standarderror(\"".gettemplate('store_steal_cannot')."\");");
}
$getduser=$DB_site->query_first("SELECT userid,usertitle,username,storep,usergroupid FROM user WHERE username='".addslashes(htmlspecialchars($stealusername))."'");
if ($getduser[storep]<50) { // victim should have more than $100
eval("standarderror(\"".gettemplate('store_steal_poor')."\");");
}
if ($getduser[usergroupid]=="6") { // don't steal from admin
eval("standarderror(\"".gettemplate('store_givetitle_noadmin')."\");");
}
if (empty($getduser[username])) {
eval("standarderror(\"".gettemplate('store_donate_dontexist')."\");");
}
else {
$storeadmin = $DB_site->query_first("SELECT * FROM storeadmin");
$storename=$storeadmin[storename];
$pointname=$storeadmin[pointname];
$contest = $DB_site->query_first("SELECT * FROM store WHERE action='steal'");
eval("dooutput(\"".gettemplate("store_steal_money")."\");");
}
}
GenSec
05-20-2002, 05:20 PM
Roxie
I'm on your board
Let's tune it right there
ULTIMATESSJ
05-20-2002, 06:06 PM
i'm still getting this error
Database error in vBulletin 2.2.5:
Invalid SQL: UPDATE user SET storep=storep-100,KARMA=KARMA-20 WHERE userid='1'
mysql error: Unknown column 'KARMA' in 'field list'
mysql error number: 1054
Date: Monday 20th of May 2002 03:03:52 PM
Script: http://www.animexplosion.com/forums/forums/store.php
Referer: http://www.animexplosion.com/forums/store.php
I have the karma hack installed
GenSec
05-20-2002, 06:12 PM
Originally posted by ULTIMATESSJ
i'm still getting this error
Database error in vBulletin 2.2.5:
Invalid SQL: UPDATE user SET storep=storep-100,KARMA=KARMA-20 WHERE userid='1'
mysql error: Unknown column 'KARMA' in 'field list'
mysql error number: 1054
Date: Monday 20th of May 2002 03:03:52 PM
Script: http://www.animexplosion.com/forums/forums/store.php
Referer: http://www.animexplosion.com/forums/store.php
I have the karma hack installed
Do you have in user table the field "KARMA"?
ULTIMATESSJ
05-20-2002, 08:13 PM
Originally posted by GenSec
Do you have in user table the field "KARMA"?
if u mean in phpmyadmin, no i don't
GenSec
05-21-2002, 05:18 AM
Then use nokarma version.
There are a lot of karma hacks. In my case table user includes field with name KARMA. If you have any other similar field (points, rating... etc.) try to change KARMA to this one.
ULTIMATESSJ
05-21-2002, 02:26 PM
Originally posted by GenSec
Then use nokarma version.
There are a lot of karma hacks. In my case table user includes field with name KARMA. If you have any other similar field (points, rating... etc.) try to change KARMA to this one.
can you explain what i gotta do then, sorry bout this but i am a compete newbie at this stuff
GenSec
05-21-2002, 02:56 PM
Just delete ,KARMA=KARMA-$priz everywhere from queries.
Or try to find in your karma hack what field was added to user table. Look instrustions to your hack.
Roxie
05-21-2002, 10:11 PM
All of a sudden it stopped working for me. It let's me put in the name to steal from but then it says I am too young> :(
GenSec
05-22-2002, 05:14 AM
Roxie. Email me your php text I try to look what's wrong
Roxie
05-23-2002, 03:43 PM
GenSec, now it works for me, but not any of my members. This is really odd. lol
GenSec
05-24-2002, 06:48 AM
What can I say? Roxie. I don't see any error in php I send you.
Check one more what is store.php on server.
Two lines:
if ($bbuserinfo[posts]<5)
Roxie
05-24-2002, 10:43 AM
It seems that even though it says 5, it will only let users with 100 or more posts steal. I'll try to figure it out or I'll just leave it at 100. Thanks for looking at it for me.
wintz
05-24-2002, 12:31 PM
When i try to steal i get the below error
Invalid SQL: INSERT INTO privatemessage (privatemessageid,userid,touserid,fromuserid,title ,message,dateline,showsignature,iconid,messageread ,folderid,receipt) VALUES (NULL,64,64,DMINID,'Crime','Toby!
Sorry, you were robed for the sum 50.
It was very smart robbery! We didn\'t take them.
',1022246379,'Case-Sensitive Forums','',0,0,0)
mysql error: Unknown column 'DMINID' in 'field list'
mysql error number: 1054
any ideas how to fix this? thanks
Blue2000
05-26-2002, 03:57 AM
you know what would make this addon better
when the godfather, insurance or adminid pms you it also adds in the pm who tryed to rob from them .. ;) this would start little wars and could be fun
Blue2000
05-26-2002, 06:12 AM
also how would i add a new button near users nicks that appears under called "ROB ME": this way we all will live in a more dangerouse!!! real time robbering while u r reading a post... and without going to the shop :P
Blue2000
05-26-2002, 06:14 AM
Originally posted by wintz
When i try to steal i get the below error
Invalid SQL: INSERT INTO privatemessage (privatemessageid,userid,touserid,fromuserid,title ,message,dateline,showsignature,iconid,messageread ,folderid,receipt) VALUES (NULL,64,64,DMINID,'Crime','Toby!
Sorry, you were robed for the sum 50.
',1022246379,'Case-Sensitive Forums','',0,0,0)
mysql error: Unknown column 'DMINID' in 'field list'
mysql error number: 1054
any ideas how to fix this? thanks
you need to set DMINID to your admin id in the command.
the info to installed missed out the A on a few lines
wintz
05-26-2002, 07:13 AM
Thanks for the reply but i`m not sure what you mean and where would i make the changes? thanks
Blue2000
05-26-2002, 07:57 AM
ok find your admin userid
should be 2
hover over your profile file link in any of "your" posts and look at the buttom of ie
you should see somthing like
https://vborg.vbsupport.ru/member.php?s=&action=getinfo&userid=8741
make a note of that id
then in the instuctions.txt
find
// change ADMINID (should be in it twice)
in that line you will see DMINID just after NULL,$usid,$usid,
remove dminid and put in your admin id you made a note of before.
so you finished line should look like this
VALUES (NULL,$usid,$usid,2,'Crime','".addslashes($message)."',".time().",'$bbtitle','',0,0,0)"); // change ADMINID
wintz
05-26-2002, 08:12 AM
Thanks alot m8, looks like thats sorted it ;)
Blue2000
05-26-2002, 08:12 PM
Originally posted by Blue2000
also how would i add a new button near users nicks that appears under called "ROB ME": this way we all will live in a more dangerouse!!! real time robbering while u r reading a post... and without going to the shop :P
ok i have done this one myself..
for anyone who wants it
find in functions.php
if (($bbuserinfo[usergroupid]==6)) {
$donate="<br><a href=\"javascript:showwin('admin/storeadmin.php?action=givemoneyverify&giveusername=$post[username]', 'width=550,height=250')\">Donate to user</a>";
} else {
$donate='';
}
add under
$nick="<a href=\"javascript:showwin('store.php?action=stealmoney&stealusername=$post[username]', 'width=550,height=550')\">Try to steal $$</a>";
and then add
$nick
anywhere you want it in your postbit template
Blue2000
05-26-2002, 08:13 PM
Originally posted by Blue2000
you know what would make this addon better
when the godfather, insurance or adminid pms you it also adds in the pm who tryed to rob from them .. ;) this would start little wars and could be fun
i still need help with this please if anyone can.
GenSec
05-27-2002, 07:30 AM
Originally posted by Blue2000
i still need help with this please if anyone can.
Just change your message template to$stealusername! Sorry, you were robed by $bbuserinfo[username] for the sum $robber. It was very smart robbery! We didn't take them.
$bbuserinfo[username] is name of the robber.
Blue2000
05-27-2002, 02:10 PM
doh!
thanks alot GenSec for you reply it works :)
cant belaeve it was that easy :P
Blue2000
05-27-2002, 02:16 PM
i just had another idea... dont think i can do it but anyway..
why not another addon police addon
you have to bribe the police which will cost about $500 and someone trys to rob from you.. and they fail you get the money they tryed to rob. rather than the money just getting droped from the board. :)
GenSec
05-29-2002, 08:50 AM
Originally posted by Blue2000
i just had another idea... dont think i can do it but anyway..
why not another addon police addon
you have to bribe the police which will cost about $500 and someone trys to rob from you.. and they fail you get the money they tryed to rob. rather than the money just getting droped from the board. :)
It's simple. You can tune police, mafia, insurance etc. rules
I didn't understand your case economics. Police get $500 from user. Ok. Who pay to user? What is a source of money? ;)
Blue2000
05-29-2002, 06:16 PM
the way it is now when a member trys to rob from another member and fails the money gets taken off that member.
and thats that.
But if the member who you tryed to rob from as insurance "police" the money you tryed to rob goes to that user
somthing like
if ($victim[insurance]!=' police"
$DB_site->query("UPDATE user SET storep=storep+$robber WHERE userid=$usid");
but only when they robbery fails.
if you still not to sure what i mean i can try and make this hack and post the code.
Also i have another porblem. is there a way to stop somone from robbing from themselfs?
thanks for all your help
GenSec
05-30-2002, 07:05 AM
Originally posted by Blue2000
Also i have another porblem. is there a way to stop somone from robbing from themselfs?
thanks for all your help
Find line which stops robbing from admin and add there someone you want to protect if ($getduser[usergroupid]=="6" OR $getduser[userid]==$bbuserinfo[userid] OR $getduser[userid]=="GODFATHERid" OR $getduser[userid]=="INSURANCEid") { :glasses:
Blue2000
05-31-2002, 01:21 AM
cheers dude
Roxie
06-24-2002, 01:57 AM
a user has told me that even when they have negative dollars (from trying to steal and getting caught) they can still steal. To steal they need 5 dollars
GenSec
06-25-2002, 05:49 AM
Originally posted by Roxie
a user has told me that even when they have negative dollars (from trying to steal and getting caught) they can still steal. To steal they need 5 dollars
You can change rules for robber.
Just changeif ($bbuserinfo[posts]<100) {
eval("standarderror(\"".gettemplate('store_steal_cannot')."\");");
}
To
if ($bbuserinfo[posts]<100 AND $bbuserinfo[storep]>5) {
eval("standarderror(\"".gettemplate('store_steal_cannot')."\");");
} In this case robber need to have 100 posts and $5.
question whats the difference betweem god father and insurance? and how long is your money insured when u buy insurance
GenSec
06-25-2002, 07:25 AM
Originally posted by Keta
question whats the difference betweem god father and insurance? and how long is your money insured when u buy insurance Look https://vborg.vbsupport.ru/showthread.php?postid=249115#post249115. Just updated hack. Now insurance is lasting up to first robbery.
ok one more question how do u get covered by the +++++? u buy the godfather?
GenSec
06-25-2002, 08:39 AM
You pay to godfather. It's all in the store
lol sorry on more question...what happens when u buy +++++ protection? because someone brought the godfather and their money was still stolen
GenSec
06-26-2002, 05:18 AM
Originally posted by Keta
lol sorry on more question...what happens when u buy mafia protection? because someone brought the godfather and their money was still stolen
In this case if ($victim[insurance]=='mafia') {
$robs=intval($robber/2);
$DB_site->query("UPDATE user SET storep=storep-$robs WHERE userid=$usid");
$DB_site->query("UPDATE user SET storep=storep+$robber WHERE userid=GodFatherID");
$DB_site->query("UPDATE user SET storep=storep+$robs, karma=karma-$priz WHERE userid='$bbuserinfo[userid]'");
victim get a half of stolen money back, robber pay another half to mafia and godfather get that all. You can change this rule easily
Roxie
07-15-2002, 05:51 AM
Originally posted by GenSec
You can change rules for robber.
Just changeif ($bbuserinfo[posts]<100) {
eval("standarderror(\"".gettemplate('store_steal_cannot')."\");");
}
To
if ($bbuserinfo[posts]<100 AND $bbuserinfo[storep]>5) {
eval("standarderror(\"".gettemplate('store_steal_cannot')."\");");
} In this case robber need to have 100 posts and $5.
This worked for me until I edited my database. I edited the database so that my users could have an unlimited amount of money and also could have a negative amount of money. Could this have affected how this works? My users can now steal regardless how much money they have. :confused:
GenSec
07-16-2002, 07:32 AM
No means. It doesn't depend on your database structure.
Atian
07-17-2002, 09:05 PM
i get this error
Database error in vBulletin 2.2.6:
Invalid SQL: INSERT INTO privatemessage (privatemessageid,userid,touserid,fromuserid,title ,message,dateline,showsignature,iconid,messageread ,folderid,receipt) VALUES (NULL,17,17,DMINID,'Attempt of a robbery','Buddy! They try to steal your $1 You are lucky. They are not. You still keep your money. ',1026943290,'Final Fantasy Underground','',0,0,0)
mysql error: Unknown column 'DMINID' in 'field list'
mysql error number: 1054
when i try to steal from someone
Atian
07-17-2002, 09:11 PM
and i cant run the last 2 queries i get these
SQL-query :
INSERT INTO store VALUES (NULL, '+++++', 'Safeguard', '100', '0', 'godfather.gif', 'We protect your money', 'Y')
MySQL said:
Column count doesn't match value count at row 1
GenSec
07-18-2002, 05:19 AM
Absolutly.
DMINID is your admin userid.
For some (first) version of Lesane store
INSERT INTO store VALUES (NULL, 'mafia', 'Safeguard', '100', '0', 'godfather.gif', 'We protect your money', 'Y') is right.
For the last should be
INSERT INTO store VALUES (NULL, 'mafia', 'Safeguard', '100', '0', 'godfather.gif', 'We protect your money', 'Y','0') is right.
Atian
07-18-2002, 06:25 AM
ah thanks,now it worked
Night Owl
07-19-2002, 07:33 AM
What percentage of the time are robberies successful with this hack? And can I change that? If so, how?
Night Owl
07-20-2002, 02:04 AM
I would also like for people to be able to steal from the admins. How do I do that?
Thanks!
Stealthy
07-20-2002, 04:55 PM
Originally posted by Night Owl
What percentage of the time are robberies successful with this hack? And can I change that? If so, how?
GenSec, I would like to know that as well.
Also, I would like to make it so that a member has a greater chance of failure if trying to steal from a Moderator.
What would I need to do to add this?
Night Owl
07-21-2002, 01:23 PM
Two of my members are getting this error when trying to steal. No one else is getting it. What does this mean?
Database error in vBulletin 2.2.6:
Invalid SQL: UPDATE user SET storep=storep-80 points+78 WHERE userid=60
mysql error: You have an error in your SQL syntax near 'points+78 WHERE userid=60' at line 1
mysql error number: 1064
Attempting to modify the database and I receive this error:
SQL-query :
INSERT INTO store VALUES (NULL, 'steal', 'Crime and punishment', '0', '0', 'thief.gif', 'It is not caught - not the thief', 'Y')
MySQL said:
Column count doesn't match value count at row 1
Back
Help! :cry:
Kasper_H
07-22-2002, 03:47 PM
Ha, sounds interesting! I think i'll try it out :D Good job!
GenSec
07-23-2002, 06:15 AM
Originally posted by Tara
Attempting to modify the database and I receive this error:
Look above post#93 and change toINSERT INTO store VALUES (NULL, 'steal', 'Crime and punishment', '0', '0', 'thief.gif', 'It is not caught - not the thief', 'Y','0')
GenSec
07-23-2002, 06:18 AM
Originally posted by Night Owl
Two of my members are getting this error when trying to steal. No one else is getting it. What does this mean?
I don't know where your take from points.
Just delete from sql any points
Got it! Thanks a million! ;)
GenSec
07-23-2002, 06:22 AM
Originally posted by Night Owl
I would also like for people to be able to steal from the admins. How do I do that?
Thanks! Remove from script all if ($getduser[usergroupid]=="6") { // don't steal from admin
eval("standarderror(\"".gettemplate('store_givetitle_noadmin')."\");");
}
GenSec
07-23-2002, 06:30 AM
Originally posted by Night Owl
What percentage of the time are robberies successful with this hack? And can I change that? If so, how?
It' very simple and depends on fatum number $fatum=time()%2;. Robbery is successful when $fatum<>0.
Change it to your choice.
Stealthy
07-24-2002, 02:15 AM
GenSec, What does the value "$fatum=time()%2" mean?
If I change it to "$fatum=time()%3", would that increase or decrease the chance of success? And what is the percentage of success with the new value?
And do you have a way for robberies to be less successfull against Moderators?
GenSec
07-24-2002, 06:21 AM
It determs if current time is odd or even.
If you change to $fatum=time()%3 you decrease the chance of success. But if you also change if ($fatum) to oppose if (!$fatum) you increase your chances. :)
DestyNova
07-24-2002, 05:08 PM
before I install this hack.. I m curious about this
Originally posted by GenSec
It determs if current time is odd or even.
If you change to $fatum=time()%3 you decrease the chance of success. But if you also change if ($fatum) to oppose if (!$fatum) you increase your chances. :)
In other word, to increase chance by replace
$fatum=time()%2
to:
if ($fatum)=time()%2
or:
if (!$fatum)=time()%2
which one? or different? I m newbie with PHP stuff :-) and also your hack are awesome and fun thing to do :-)
GenSec
07-24-2002, 05:27 PM
To increase chanceif ($action=="stealchanged") {
$fatum=time()%3;
$priz=intval($stealm/5); // it' s karma penalty
$robber=$stealm;
if (!$fatum) {
DestyNova
07-24-2002, 05:47 PM
Cool, thanks
Last one thing, I gonna hit a nail thur my head on this one, if I change %3 to say.. %9, it will increase of chance to steal right?
GenSec
07-24-2002, 06:03 PM
Yes, but it has no sence. It's just like every attempt is successful
DestyNova
07-24-2002, 06:08 PM
ah, ok cool
I m going to install right away to see how it is. Many thanks
Stealthy
07-25-2002, 05:54 AM
Thanks GenSec, that clears it up for me. :D
dgessler
07-25-2002, 07:15 PM
Hi,
Can GenSec or someone else help me. I am editing the templates, and don't understand some of the wording.
In the template store_steal_limit with the code:
Buddy!
<BR>
Have conscience! Don't take the last
<BR>
What does that mean? Don't take the last? Can someone please clear this up for me so I can re word this? Thanks!
Dan
Christy
07-25-2002, 11:47 PM
Pretty much means Dont take the last of there money, be nice :)
dgessler
07-26-2002, 12:53 PM
I see, thanks christy
Night Owl
07-29-2002, 02:31 AM
I keep getting this error:
Database error in vBulletin 2.2.6:
Invalid SQL: UPDATE user SET storep=storep+the mofia WHERE userid=731
mysql error: You have an error in your SQL syntax near 'mofia WHERE userid=731' at line 1
mysql error number: 1064
I checked my store.php file and see no instance of the word "mofia." What could this be?
GenSec
07-29-2002, 05:32 AM
I guess user=731 noted "the mofia" in the form instead of money
Night Owl
07-29-2002, 05:38 AM
That user is the GODFATHER on my board. No one ever logs in as that. Also, I don't understand what you said. Could you rephrase that please?
Thanks! :)
GenSec
07-29-2002, 06:05 AM
It looks like someone try to rob but instead of the amount of the robbery wrote "the mofia"
Night Owl
07-29-2002, 06:35 AM
ahhhh...I see. Thank you!
Apok2002
07-31-2002, 09:05 PM
Whever someone fails a steal on my board...the page simply goes blank. Is the url or path incorrect? Could that cause it? If so, WHERE (what file or what template) would I need to modify to fix it? And what would the new path be? ie....www.myurl.net/forums/whattheheckgoeshere?
It seems to work fine when the steal is successful...just not when it is unsuccessful.
Did u Know you can steal from the godfather and the insurance guy as they are just normal members and aint protected as such.
I have tried and got the dosh quite easy.
As they aint set to admins they are excluded from being protected and seeing as the insurance guy is the one with all the money is there anyway to protect him besides setting him to Admin Status.
Also one small point is there any way to make the insurance guy pay up more to u if u are insured.
I did a test and has 5000 points so i got a test account to steal it and insurance paid me 521 what a rip off
Apok2002
07-31-2002, 09:43 PM
It looks like the template for failure is store_steal_nomoney, but can anyone explain why it simply gives a blank page upon failure instead of telling you that you failed to steal from the member?
u must ov installed it wrong m8 as it does work and im afraid i aint no vbb hacker but someone will be able to help you.
GenSec
08-01-2002, 09:59 AM
To protect (or not) godfather and any other account look in the previous messages.
It looks like if ($getduser[usergroupid]=="6" OR $getduser[userid]=="777") { // don't steal from admin and Godfather
eval("standarderror(\"".gettemplate('store_givetitle_noadmin')."\");");
}
Where 777 is godfather userid
2Apok2002
You just need to install it correctly.
Apok2002
08-02-2002, 01:01 AM
hmmm....I dunno. The templates are correct. I've copied and recopied the code from your ins_nokarma.txt several times. I've installed about 20 other hacks on my site just fine. This is the one that kicks my arse for some reason. Perhaps I need to just redo the entire store.php from Lesane. Then reinstall your hack from scratch.
Roxie
08-02-2002, 11:20 PM
Hi gensec, is there a way to get rid of the Godfather?
vdinh
08-05-2002, 02:38 PM
Hi GenSec,
One of my users actually uses the Back button to keep stealing until he is successful ... I already set up so that if a user's money is negative, he won't be allowed to steal. However, once this user was caught and his money was below 0, he keeps hitting the Back button to go back to steal and was able to do so ...
Is there a way to stop this? Thanks :)
GenSec
08-05-2002, 03:00 PM
Originally posted by Roxie
Hi gensec, is there a way to get rid of the Godfather? Of course. Remove from store mafia item. And check user database, that no one has "mafia" in the insurance field.
Roxie
08-05-2002, 03:06 PM
hmmm. I meant just for certain people to stop using him.Does buying insurance REPLACE him.
GenSec
08-05-2002, 03:14 PM
Originally posted by vdinh
Hi GenSec,
One of my users actually uses the Back button to keep stealing until he is successful ... I already set up so that if a user's money is negative, he won't be allowed to steal. However, once this user was caught and his money was below 0, he keeps hitting the Back button to go back to steal and was able to do so ...
Is there a way to stop this? Thanks :)
It should to help:
// ###################### Start Verify Stealing #######################
if ($action=="stealverify") {
$getrobber=$DB_site->query_first("SELECT storep FROM user WHERE userid='$bbuserinfo[userid]'");
If ($getrobber[storep]<0) {
eval("standarderror(\"".gettemplate('store_steal_cannot')."\");");
}
$getduser=$DB_site->query_first("SELECT userid,usertitle,username,storep FROM user WHERE username='".addslashes(htmlspecialchars($stealusername))."'");
$contest = $DB_site->query_first("SELECT * FROM store WHERE action='steal'");
$storeid=$contest[id];
GenSec
08-05-2002, 03:16 PM
Originally posted by Roxie
hmmm. I meant just for certain people to stop using him.Does buying insurance REPLACE him. Yes. User need to chose between insurance and mafia.
Stealthy
08-06-2002, 04:43 PM
GenSec, first of all, thank you for your great support for a great hack! My members really enjoy it. :D
I have a question: Is there a way to limit the number of times a user can attempt to steal in a given day?
Say, I want my members to only be able to attempt to steal twice in a 24 hr period. Is there a way to put this limit in?
dadymac
08-06-2002, 08:58 PM
you really need to add http refers so that people dont just stick names in the code and have scripts where users will automatically try to steal.
Apok2002
08-09-2002, 04:58 AM
As per Gensec, I used the following line (copy/paste) to make it so that people can't steal from Insurance or Godfather (it's ok to steal from admins though). I replaced his original line that he posted:
if ($getduser[usergroupid]=="6" OR $getduser[userid]==$bbuserinfo[userid] OR $getduser[userid]=="GODFATHERid" OR $getduser[userid]=="INSURANCEid") {
With the ID #'s of the Godfather and Insurance. Here is the whole code.
if $getduser[userid]==$bbuserinfo[userid] OR $getduser[userid]=="370" OR $getduser[userid]=="369") {
eval("standarderror(\"".gettemplate('store_nosteal')."\");");
}
370 = Godfatherid, and 239 = Insuranceid. I created a new template called "store_nosteal" that simplay says you can't steal from the Godfather or Insurance.
I get the following error:
Parse error: parse error, unexpected T_VARIABLE, expecting '(' in /home/apok/public_html/forums/store.php on line 1074
What am I doing wrong? What is the fix?
Apok2002
08-09-2002, 05:09 AM
Also, Gensec, as per your instructions on how to make it so that members MUST have at least $5 to steal, I copied/pasted your code, but it didn't work EXACTLY the way it's supposed to. Here is my code:
if ($bbuserinfo[posts]<100 AND $bbuserinfo[storep]>5) { // don't allow new users to steal -- Thief should have 100 posts
eval("standarderror(\"".gettemplate('store_steal_cannot')."\");");
}
If you have a negative balance it won't let you steal. But if you have $0 or more $$$, you CAN steal. Granted, it's just a few $$$ difference from $-1 to $5, but I'm just curious why it wouldn't work? It'd be nice to be able to control it...like making it be that even thiefs have to have $100 in the positive before they can steal. But it doesn't appear to work that way. It will only prevent theft if they are in the negative balance.
Apok2002
08-09-2002, 05:38 AM
In the following code to prevent people from using the back button to steal:
// ################ to prevent repeated attempts #################
if ($action=="stealverify") {
$getrobber=$DB_site->query_first("SELECT storep FROM user WHERE userid='$bbuserinfo[userid]'");
If ($getrobber[storep]<0) {
eval("standarderror(\"".gettemplate('store_steal_cannot')."\");");
}
$getduser=$DB_site->query_first("SELECT userid,usertitle,username,storep FROM user WHERE username='".addslashes(htmlspecialchars($stealusername))."'");
$contest = $DB_site->query_first("SELECT * FROM store WHERE action='steal'");
$storeid=$contest[id];
There is NO change for me when I use this code above, as opposed the the original code of:
if ($action=="stealverify") {
$getduser=$DB_site->query_first("SELECT userid,usertitle,username,storep FROM user WHERE username='".addslashes(htmlspecialchars($stealusername))."'");
$contest = $DB_site->query_first("SELECT * FROM store WHERE action='steal'");
$storeid=$contest[id];
Can you help?
GenSec
08-09-2002, 05:52 AM
You forgot ( after if if ($getduser[userid]==$bbuserinfo[userid] OR $getduser[userid]=="370" OR $getduser[userid]=="369") {
Sec.
Should be
if ($bbuserinfo[posts]<100 AND $bbuserinfo[storep]<5) In your case members MUST have at least 100 posts and less than $5.
Apok2002
08-09-2002, 06:16 AM
Thanks for your help Gensec...my members are getting ancy about me going "live" w/ this hack. I still have a few things I wanna tweak first. :)
In your case members MUST have at least 100 posts and less than $5.
I used both OR and AND...and both allowed me to steal as long as I had $0 or more. No biggie though.
I'm more concerned w/ the "back button" bug that I listed above. Also, how do I put in html referrers so members aren't FORCED to use the back button to get back to the store, main page, or wherever they want to go. As of now...they have to use the back button which promotes the "bug" of redoing the steal over and over again.
Also, did you know that when they are penalized...they can still get around not being able to post...by simply using the Quick Reply box? Is there a code we can use to prevent them from using the Quick Reply box if they are being penalized (negative balance)?
GenSec
08-09-2002, 06:40 AM
Originally posted by Apok2002
Also, how do I put in html referrers so members aren't FORCED to use the back button to get back to the store, main page, or wherever they want to go. As of now...they have to use the back button which promotes the "bug" of redoing the steal over and over again.
Also, did you know that when they are penalized...they can still get around not being able to post...by simply using the Quick Reply box? Is there a code we can use to prevent them from using the Quick Reply box if they are being penalized (negative balance)? You can't to prevent sophisticated user to use back button. But you can invent some rules. In the above case user can redoing steal up to he lost his money. To close Quick Reply box you should insert in Quick Reply hack the same string as for regular Newreply.php.
Frankly, I'm changing my pickpocketing rules to absolutely another direction, creating special thief clan.
Apok2002
08-09-2002, 09:53 PM
Frankly, I'm changing my pickpocketing rules to absolutely another direction, creating special thief clan
ooooohhh sounds nice. :) I'm hoping you release that publicly. :)
Also, what about this code? Why is it not working? What exactly is it supposed to do? This is the code that I posted above about using when people use the back button.
// ################ to prevent repeated attempts #################
if ($action=="stealverify") {
$getrobber=$DB_site->query_first("SELECT storep FROM user WHERE userid='$bbuserinfo[userid]'");
If ($getrobber[storep]<0) {
eval("standarderror(\"".gettemplate('store_steal_cannot')."\");");
}
$getduser=$DB_site->query_first("SELECT userid,usertitle,username,storep FROM user WHERE username='".addslashes(htmlspecialchars($stealusername))."'");
$contest = $DB_site->query_first("SELECT * FROM store WHERE action='steal'");
$storeid=$contest[id];
Apok2002
08-13-2002, 02:08 AM
I've tried this a few times. I'm not doing it. I have NO idea where to put if($bbuserinfo[storep]<0) {
eval("standarderror(\"".gettemplate('error_prizon')."\");");
}
Can anyone help? I have Firefly's Quick Reply box installed. The above code does not appear to work in the template, and the newreply.php was never edited in the QuickReply hack, and I don't think it would go into the showthread.php file.
A new template is used for the QR box...I tried putting it in there a few places...but that doesn't seem to work either. Anyone have any ideas how to lock out the QR box?
BluSmurf
08-16-2002, 03:29 PM
Originally posted by Stealthy
GenSec, first of all, thank you for your great support for a great hack! My members really enjoy it. :D
I have a question: Is there a way to limit the number of times a user can attempt to steal in a given day?
Say, I want my members to only be able to attempt to steal twice in a 24 hr period. Is there a way to put this limit in?
i would be great if this is added as it would prevent people from abusing it :D
Apok2002
08-17-2002, 06:30 AM
Agreed 100%. I have some members who will just continue hitting the back button over and over to steal from another person. They get negative balances eventually, and when they quit, they will have a lot of "begging" for $$$ to do to be able to post...but it doesn't stop the problem.
Stealthy
08-17-2002, 04:32 PM
GenSec? How bout it? :D :D :D :D
Stealthy
08-18-2002, 04:58 PM
Anyone else? I am getting a lot of abuse from people who cannot quit trying to steal from everyone and they are ruining the game for others. I may have to uninstall this hack if it continues. Unless we can find a way to limit the amount of times a person can attempt to steal in a given period of time.
supersimon
08-20-2002, 12:23 AM
i cant run tha database modifactiosn i get errors
SQL-query : [Edit]
INSERT INTO store VALUES (NULL, 'steal', 'Crime and punishment', '0', '0', 'thief.gif', 'It is not caught - not the thief', 'Y')
MySQL said:
Column count doesn't match value count at row 1
Originally posted by supersimon
i cant run tha database modifactiosn i get errors
SQL-query : [Edit]
INSERT INTO store VALUES (NULL, 'steal', 'Crime and punishment', '0', '0', 'thief.gif', 'It is not caught - not the thief', 'Y')
MySQL said:
Column count doesn't match value count at row 1
Look above post#93 and change to
INSERT INTO store VALUES (NULL, 'steal', 'Crime and punishment', '0', '0', 'thief.gif', 'It is not caught - not the thief', 'Y','0')
critical
08-24-2002, 05:35 AM
can someone explain to me whats insurance and what +++++?! what are they for?! the default description seems so ununderstandable.. thanks a lot!
Lovaboye
08-24-2002, 08:09 PM
INSERT INTO privatemessage (privatemessageid,userid,touserid,fromuserid,title ,message,dateline,showsignature,iconid,messageread ,folderid,receipt) VALUES (NULL,2,2,DMINID,'Crime','test!
Sorry, you were robed for the sum 70.
It was very smart robbery! We didn\'t take them.
',1030222597,' Forums','',0,0,0)
mysql error: Unknown column 'DMINID' in 'field list'
mysql error number: 1054
I get this error after i rob some1, what is wrong?
critical
08-25-2002, 10:24 AM
pls tell me wats the difference between +++++ and insurance?!? gladly appreciated.. my user keep pestering me
Originally posted by Lovaboye
',1030222597,' Forums','',0,0,0)
mysql error: Unknown column 'DMINID' in 'field list'
mysql error number: 1054
I get this error after i rob some1, what is wrong? [/QUOTE]
I got this but funny enough it went on its own.My problem is now this - the hack works perfect thiefs need to have 100 posts to steal but no money ??///
they can steal with nothing even though it is set for 200 points
Is there a fix to this as its crazy time at moment as everyone is at it.
Originally posted by Mr_P
they can steal with nothing even though it is set for 200 points
Is there a fix to this as its crazy time at moment as everyone is at it.
anyone know how to make it charge for the thief as at moment it says its 200 but u can get it fro free somehow.
Obi-Wan
09-08-2002, 08:29 AM
I did all there was to do for all I know but when I wanna insure/steal I get just this:
// ###################### Start insurance ####################### if ($action=="insurance") { $contest = $DB_site->query_first("SELECT * FROM store WHERE action='insurance'"); $title=$contest[title]; $cost=$contest[costs]; $user++++ = $DB_site->query_first("SELECT userid,username,storep,usertitle FROM user WHERE userid=$bbuserinfo[userid]"); $points=$user++++[storep]; if ($cost>$points) { eval("standarderror(\"".gettemplate('store_error')."\");"); } else { $DB_site->query("UPDATE user SET insurance='insurance',storep=storep-$cost WHERE userid='$bbuserinfo[userid]'"); $DB_site->query("UPDATE user SET storep=storep+$cost WHERE userid=78"); $changestorenow = $DB_site->query("UPDATE store SET sold=sold+1 WHERE action='insurance'"); $moneycheck = $DB_site->query_first("SELECT storep FROM user WHERE userid=$bbuserinfo[userid]"); $money = $moneycheck[storep]; eval("dooutput(\"".gettemplate("store_insurance")."\");"); } } // ###################### Start mafia ####################### if ($action=="mafia") { $contest = $DB_site->query_first("SELECT * FROM store WHERE action='mafia'"); $title=$contest[title]; $cost=$contest[costs]; $user++++ = $DB_site->query_first("SELECT userid,username,storep,usertitle FROM user WHERE userid=$bbuserinfo[userid]"); $points=$user++++[storep]; if ($cost>$points) { eval("standarderror(\"".gettemplate('store_error')."\");"); } else { $DB_site->query("UPDATE user SET insurance='mafia',storep=storep-$cost WHERE userid='$bbuserinfo[userid]'"); $DB_site->query("UPDATE user SET storep=storep+$cost WHERE userid=79"); $changestorenow = $DB_site->query("UPDATE store SET sold=sold+1 WHERE action='mafia'"); $moneycheck = $DB_site->query_first("SELECT storep FROM user WHERE userid=$bbuserinfo[userid]"); $money = $moneycheck[storep]; eval("dooutput(\"".gettemplate("store_mafia")."\");"); } } // ###################### Start steal Lookup ########### if ($action=="steal") { if ($bbuserinfo[posts]<100) { // victim should have more than $100 eval("standarderror(\"".gettemplate('store_steal_cannot')."\");"); } $contest = $DB_site->query_first("SELECT * FROM store WHERE action='steal'"); $storeid=$contest[id]; $title=$contest[title]; $cost=$contest[costs]; eval("dooutput(\"".gettemplate("store_steal_lookup")."\");"); } // ###################### Start steal How Much? ####################### if ($action=="stealmoney") { if ($bbuserinfo[posts]<100) { // don't allow new users to steal -- they need to have more than $100! eval("standarderror(\"".gettemplate('store_steal_cannot')."\");"); } $getduser=$DB_site->query_first("SELECT userid,usertitle,username,storep,usergroupid FROM user WHERE username='".addslashes(htmlspecialchars($stealusername))."'"); if ($getduser[storep]<100) { // victim should have more than $100 eval("standarderror(\"".gettemplate('store_steal_poor')."\");"); } if $getduser[userid]==$bbuserinfo[userid] OR $getduser[userid]=="79" OR $getduser[userid]=="78") { eval("standarderror(\"".gettemplate('store_nosteal')."\");"); } if (empty($getduser[username])) { eval("standarderror(\"".gettemplate('store_donate_dontexist')."\");"); } else { $storeadmin = $DB_site->query_first("SELECT * FROM storeadmin"); $storename=$storeadmin[storename]; $pointname=$storeadmin[pointname]; $contest = $DB_site->query_first("SELECT * FROM store WHERE action='steal'"); eval("dooutput(\"".gettemplate("store_steal_money")."\");"); } } // ###################### Start Verify Stealing ####################### if ($action=="stealverify") { $getduser=$DB_site->query_first("SELECT userid,usertitle,username,storep FROM user WHERE username='".addslashes(htmlspecialchars($stealusername))."'"); $contest = $DB_site->query_first("SELECT * FROM store WHERE action='steal'"); $storeid=$contest[id]; if($stealmoney<0) { $stealmoney=-$stealmoney; } if (($getduser[storep]-$stealmoney)<20) { eval("standarderror(\"".gettemplate('store_steal_limit')."\");"); } $need=$points + $stealmoney; $rest=$getduser[storep] - $stealmoney; if ($rest<0) { eval("standarderror(\"".gettemplate('store_steal_error')."\");"); } eval("dooutput(\"".gettemplate("store_steal_accept")."\");"); } // ###################### Start steal Change ####################### if ($action=="stealchanged")
And this is just a part.
I've changed the query's, set the option that admin's can be robbed but insurance and godfather not.
Can anybody help me out with this please?
Obi-Wan
09-10-2002, 08:49 AM
*bump*
Anybody ?? :D
azork
09-10-2002, 01:01 PM
Very nice hack Gensec.
Now here are requests for little addons that would bring a lot of fun:
- Members can become Godfathers: they could buy it in the store if they have a lot of money
- Members can steal the store or the itemshop (from Vivi)
azork
09-11-2002, 01:17 PM
Prison hack: a page where you can see all members with negative points.
Cold Steel
09-15-2002, 07:14 PM
Great hack, GenSec. My members love it.
I have a couple questions/problems.
Some members get this when they try to steal. It only happens intermittently.
Database error in vBulletin 2.2.6:
Invalid SQL: UPDATE user SET storep=storep-$50 WHERE userid='1988'
mysql error: Unknown column '$50' in 'field list'
mysql error number: 1054
Date: Sunday 15th of September 2002 01:52:26 PM
Script: http://forums.asiansinc.com/store.php
Referer: http://forums.asiansinc.com/store.php
I have members with negative balances that keep stealing. Is this normal?
If I want to change it so that thieves have to pay the Mafia the entire amount they tried to steal, or so that they have to pay MORE than they tried to steal, what should I change it to?
I have the quick-reply hack installed. Users who have negative balances can still post via this hack. Is there anyway to edit showthread.php around it?
Is there any way to change the way insurance pays out? I have people who are getting robbed for $200 (insurance paid them $602), $500 (insurance paid them $629), $500 (insurance paid them $581. Can you make it so they don't get back more than people tried to steal?
Thanks again for the great hack!
Cold Steel
09-17-2002, 12:14 AM
if ($bbuserinfo[posts]<100 OR $bbuserinfo[storep]<0) {
What would the above code do, in terms of restricting people from stealing?
Cold Steel
09-21-2002, 02:42 PM
Bump.
azork
10-06-2002, 11:24 PM
Another question: is it possible to have as an option the pm system: some members receib=ve a mass of private messages and don't want it :/
bouncer18
10-14-2002, 04:36 AM
Invalid SQL: UPDATE store SET sold=sold+1 WHERE id=
mysql error: You have an error in your SQL syntax near '' at line 1
any ideas?
influence
11-03-2002, 03:30 PM
where is the +++++.gif graphic at?
girlzclan
11-10-2002, 02:14 AM
I just installed this hack last night and my forum members absolutley LOVE IT!!
5 stars :) *****
darker1
11-13-2002, 04:52 PM
quick question:
ADMINID = the forums administrator id, or create a new users called adminid and use that id?
vdinh
11-13-2002, 06:20 PM
Originally posted by darker1
quick question:
ADMINID = the forums administrator id, or create a new users called adminid and use that id?
It's the forum's adinistrator id. It won't have to be your super admin's id. Any admin id will do.
supersimon
11-16-2002, 06:23 PM
Database error in vBulletin 2.2.7:
Invalid SQL: UPDATE user SET storep=storep+1000, WHERE userid='1'
mysql error: You have an error in your SQL syntax near 'WHERE userid='1'' at line 1
mysql error number: 1064
Date: Saturday 16th of November 2002 03:22:37 PM
Script: http://www.liquidflo.com/rap/rap/store.php
Referer: http://www.liquidflo.com/rap/store.php
help anyoen ???
supersimon
11-16-2002, 07:30 PM
last problem solved!!!
now i get this one ??? lol
Database error in vBulletin 2.2.7:
Invalid SQL: INSERT INTO privatemessage (privatemessageid,userid,touserid,fromuserid,title ,message,dateline,showsignature,iconid,messageread ,folderid,receipt) VALUES (NULL,195,195,DMINID,'Crime','lockdown!
Sorry, you were robed for the sum 1000.
It was very smart robbery! We didn\'t take them.
',1037482017,'LiquidFLO','',0,0,0)
mysql error: Unknown column 'DMINID' in 'field list'
mysql error number: 1054
and it steals teh persons money but it just gives me this message
Date: Saturday 16th of November 2002 04:26:57 PM
Script: http://www.liquidflo.com/rap/rap/store.php
Referer: http://www.liquidflo.com/rap/store.php
Kars10
11-16-2002, 08:32 PM
This Hack is great!!
/me klicks install!
Kars10
11-17-2002, 11:01 AM
Damn, when i try to steal from someone ill get a parse error.
The message (sucsess or not) appears and over the header of the forum stands this text:
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/www/web7/html/area/store.php(1488) : eval()'d code on line 3
Please help me... :(
Kars10
11-17-2002, 12:25 PM
...i believe it must be this line:
$money = $moneycheck[storep];
eval("\$message = \"".gettemplate("email_steal",1,0)."\";");
Any Idea??? Where the PHP-Gurus on VB.org?? ;)
Kars10
11-21-2002, 09:48 AM
Now the error went away!!
But the Private-Message only shows the Title and not the message??
My email-steal templates are correct....
Attached: Store.php
ad_uk6565
11-29-2002, 04:48 AM
this is a great hack, the instructions are confusing as hell...and could be way easier to install, but once you get it figured out, it's awesome, great job :D
vdinh
01-08-2003, 07:10 PM
Originally posted by GenSec
You can't to prevent sophisticated user to use back button. But you can invent some rules. In the above case user can redoing steal up to he lost his money. To close Quick Reply box you should insert in Quick Reply hack the same string as for regular Newreply.php.
Frankly, I'm changing my pickpocketing rules to absolutely another direction, creating special thief clan.
I have been so frustrated with users using the BACK button to keep stealing although they don't have enough money at that time. Finally I figured out this code which an admin can add to the 3 templates store_steal_lookup, store_steal_accept, and store_steal_money:
< script language="JavaScript" >
history.go(1);
< /script >
Note: remove the spaces in the script tags
vdinh
01-09-2003, 03:56 PM
Sorry ... wrong place.
jayneblaze
01-16-2003, 01:52 AM
Well I have the Mafia and the insurance working but how do I fix
Database error in vBulletin 2.2.9:
Invalid SQL: UPDATE user SET storep=storep+5, WHERE userid='2'
mysql error: You have an error in your SQL syntax near 'WHERE userid='2'' at line 1
mysql error number: 1064
Originally posted by supersimon
..... 195,DMINID,'Crime','....
just correct DMINID to ADMINID and replace it with you id :)
a few times in the store.php!
have fun
Hiob
underburn
01-28-2003, 06:13 PM
Error
SQL-query :
INSERT INTO store
VALUES (
NULL , 'steal', 'Crime and punishment', '0', '0', 'thief.gif', 'It is not caught - not the thief', 'Y'
)
MySQL said:
Column count doesn't match value count at row 1
Back
For Some Reason I Cant run the queries... I tried running them through PHP My admin and the vB Addon (made by JamesUS) for running queries through the admin CP, none work :'(
Please Help :bunny:
.:.NetStartz.:.
02-03-2003, 01:26 AM
I really want to install this hack, but after reading the 12 pages of tons of errors I was wondering if a final fix would be made available with all the corrections.
threadcrapper
02-17-2003, 05:29 PM
with the store 2.0 hack need to change the quieries to:
INSERT INTO store VALUES (NULL, 'steal', 'Crime and punishment', '0', '0', 'thief.gif', 'It is not caught - not the thief', 'Y', '0');
INSERT INTO store VALUES (NULL, 'mafia', 'Safeguard', '100', '0', 'godfather.gif', 'We protect your money', 'Y', '0');
INSERT INTO store VALUES (NULL, 'insurance', 'Insurance', '100', '0', 'insurance.gif', 'Buy insurance', 'Y', '0');
there is a new colum in 2.0 (Qty)
threadcrapper
02-17-2003, 06:29 PM
installed --
members are loosing thier minds :)
having the same problem wich cold steal had with the quick reply hack
any help?
Originally posted by Cold Steel
I have the store hack and the pickpocket hack installed.
Users who shouldn't be able to post, still can, via this hack. Is there anyway to edit showthread.php around it?
I got it so that those "in prison" couldn't even view the thread, but all I want to do is change it so they can't see the quick reply box.
i wonder if what i did was right
in showthread.php the code of QR was :
if (!$getperms['canviewothers'] and $thread['postuserid']!=$bbuserinfo['userid']) {
show_nopermission();
}
if (($bbuserinfo['userid']!=$thread['postuserid']) and (!$getperms['canviewothers'] or !$getperms['canreplyothers'])) {
$replybox='';
} elseif (!$getperms['canview'] or (!$getperms['canreplyown'] and $bbuserinfo['userid']==$thread['postuserid'])) {
$replybox='';
} elseif (!$thread['open'] and !ismoderator($thread['forumid'],'canopenclose')) {
$replybox='';
} else {
$textareacols = gettextareawidth();
eval("\$replybox = \"".gettemplate('showthread_replybox')."\";");
}
if ((!isset($pagenumber) or $pagenumber==0) and $pagenumber!="lastpage") {
$pagenumber=1;
}
i changed it to
if (!$getperms['canviewothers'] and $thread['postuserid']!=$bbuserinfo['userid']) {
show_nopermission();
}
if (($bbuserinfo['userid']!=$thread['postuserid']) and (!$getperms['canviewothers'] or !$getperms['canreplyothers'])) {
$replybox='';
} elseif (!$getperms['canview'] or (!$getperms['canreplyown'] and $bbuserinfo['userid']==$thread['postuserid'])) {
$replybox='';
} elseif (!$thread['open'] and !ismoderator($thread['forumid'],'canopenclose')) {
$replybox='';
} elseif($bbuserinfo[storep]<0) {
eval("standarderror(\"".gettemplate('error_prizon')."\");");
} else {
$textareacols = gettextareawidth();
eval("\$replybox = \"".gettemplate('showthread_replybox')."\";");
}
Darnell 0216
03-11-2003, 12:05 AM
I just installed the hack and besides the aforementioned 'bad english' and store 2.0 changes for the queries I've had no problems less one (not an interference, but as someone mentioned it appears above the header):
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/virtual/site14/fst/var/www/html/forums/store.php(1408) : eval()'d code on line 3
And my PHP editor says this when I reach that line:
mixed eval (string code_str)
auz1111
03-17-2003, 04:50 PM
05-26-02 at 09:12 PM Blue2000 said this in Post #72 (https://vborg.vbsupport.ru/showthread.php?postid=254767#post254767)
ok i have done this one myself..
for anyone who wants it
find in functions.php
if (($bbuserinfo[usergroupid]==6)) {
$donate="<br><a href=\"javascript:showwin('admin/storeadmin.php?action=givemoneyverify&giveusername=$post[username]', 'width=550,height=250')\">Donate to user</a>";
} else {
$donate='';
}
add under
$nick="<a href=\"javascript:showwin('store.php?action=stealmoney&stealusername=$post[username]', 'width=550,height=550')\">Try to steal $$</a>";
and then add
$nick
anywhere you want it in your postbit template
1. I am having trouble stealing in sub forums with this code. any help appreciated
2. Is there any way to make a stats page where u can see who is stealing the most.
auz1111
03-17-2003, 05:17 PM
one more thing... how can you change who sends out the PM when someone steals. I would like to add a police man to the board who sends out the PMs. thanks
Darnell 0216
03-18-2003, 03:23 AM
Yesterday at 02:17 PM auz1111 said this in Post #187 (https://vborg.vbsupport.ru/showthread.php?postid=368156#post368156)
one more thing... how can you change who sends out the PM when someone steals. I would like to add a police man to the board who sends out the PMs. thanks
Create a new user that's going to be your police man. Everywhere you were told to place AdminID, place the userid of the police account instead.
auz1111
03-18-2003, 03:28 AM
ok. i should have known that huh... thanks Darnell
dbroomjr
04-13-2003, 02:49 AM
After fighting with it for an hour and reading every post here, it is working like a champ...Actually it is the users favorite on my board...I have a bunch of thieves.. lol
dbroomjr
04-13-2003, 07:37 PM
:confused: Some of the members get the message that they can't steal even though they have 500 points. While others with only 100 points can steal. Any idea on what to check for these members that it is giving the messages to that have the necessary points, but still get the message?
Thanks,
David
dbroomjr
04-15-2003, 01:54 AM
Yesterday at 03:31 PM dbroomjr said this in Post #191 (https://vborg.vbsupport.ru/showthread.php?postid=381624#post381624)
:confused: Some of the members get the message that they can't steal even though they have 500 points. While others with only 100 points can steal. Any idea on what to check for these members that it is giving the messages to that have the necessary points, but still get the message?
Thanks,
David
Nevermind, I figured out the problem. Even though they had the money, they didn't have enough post to steal.
Darnell 0216
05-03-2003, 12:44 AM
04-14-03 at 10:54 PM dbroomjr said this in Post #192 (https://vborg.vbsupport.ru/showthread.php?postid=382322#post382322)
Nevermind, I figured out the problem. Even though they had the money, they didn't have enough post to steal. Just for future reference there are grammatical errors and a custom template or two may be necessary since some of the restrictions link to the wrong template or a wrongly worded template. This is why alot of people are encountering the "I have x posts/dollars can't steal while someone can. Those who know their way around templates and PHP should go through the references in the coding so they know what's what and make the necessary corrections to the templates wording.
Koutaru
05-04-2003, 08:54 PM
I have a request:
What code changes are neccessary in order to have a user steal only if the user they're stealing from is on the same page? Like they're browsing the same thread. It doesn't make sense to steal from a user that isn't even there when you're on.
:) thanks
Ok i dont know what is wrong at all....I copy that whole big thing and change all the insuranceid to 6, which is the number of the insurance user, and 7 for the godfather,and so we just put the correct number in for the 3 users right? ok if I did that right, there isn't anything eles for me to messup...because I go to the store and press to buy insurance and this error comes up but when I try to steal, it says I'm too young...does anybody know what could be wrong....and here is the error
Database error in vBulletin 2.3.0:
Invalid SQL: UPDATE user SET insurance='mafia',storep=storep-100 WHERE userid='1'
mysql error: Unknown column 'insurance' in 'field list'
mysql error number: 1054
Date: Wednesday 14th of May 2003 07:25:41 PM
Script: http://Htownholla.com//store.php?action=mafia
Referer: http://htownholla.com/store.php?action=main
Cicada
05-15-2003, 09:16 AM
i dont quite understand how to install this hack, and from reading aobut all the errors im not sure i want to install it :/
Darnell 0216
05-17-2003, 07:08 PM
05-14-03 at 07:29 PM KISS said this in Post #195 (https://vborg.vbsupport.ru/showthread.php?postid=395229#post395229)
... but when I try to steal, it says I'm too young...does anybody know what could be wrong....and here is the error
Database error in vBulletin 2.3.0:
Invalid SQL: UPDATE user SET insurance='mafia',storep=storep-100 WHERE userid='1'
mysql error: Unknown column 'insurance' in 'field list'
Part 1: Trying to steal: Like I mentioned earlier, some of the template replies are worded wrong or wrongly linked. Double check the # of post needed AND the amount of cash you have when you try to steal. Both affect your response.
Part 2: SQL Error: Your error says it all. Did you make sure to run the three necessary queries? If you don't have an insurance field, you didn't run the query or you typed it in wrong and ended up with a field named something else. This has nothing to do with the insurance user.
05-15-03 at 06:16 AM Cicada said this in Post #196 (https://vborg.vbsupport.ru/showthread.php?postid=395379#post395379)
i dont quite understand how to install this hack, and from reading aobut all the errors im not sure i want to install it :/ There are all in all only two actual errors. The ADMINID being referred to as DMINID and the queries that have to be changed according to the store version you're using. Other than that it's a great hack.
kaotic
06-01-2003, 12:43 AM
Okay, I'm using the latest store hack right now. Is this hack going to cause errors with it?
jayneblaze
06-08-2003, 05:39 AM
it lets me steal or not steal but it does not award or take away money
Roxie
06-29-2003, 12:45 AM
What happened to gensec? He was dang helpful. :)
indeed,
it would be nice to know if that can be fixed before i install this hack.
legendarysk8er
07-26-2003, 05:31 AM
How would I install this? The installation instructions make NO sense, can anyone rewrite it for me? Is this hack even any good?
Sin City
07-28-2003, 04:01 AM
i click the Steal option...it asks me the name... then how much i want to steal....but when it actually tries to steal i get this error....anyone know what i've done wrong?
Database error in vBulletin 2.3.0:
Invalid SQL: UPDATE user SET storep=storep-100, WHERE userid='1'
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE userid='1'' at line 1
mysql error number: 1064
Darnell 0216
08-03-2003, 03:12 PM
07-28-03 at 01:01 AM Sin City said this in Post #203 (https://vborg.vbsupport.ru/showthread.php?postid=421145#post421145)
i click the Steal option...it asks me the name... then how much i want to steal....but when it actually tries to steal i get this error....anyone know what i've done wrong?
Database error in vBulletin 2.3.0:
Invalid SQL: UPDATE user SET storep=storep-100, WHERE userid='1'
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE userid='1'' at line 1
mysql error number: 1064
If that is quoted directly from the file, that comma doesn't belong there and it's the reason you're getting that error. Remove the comma and all should be well.
GenSec
08-04-2003, 01:06 PM
I made absolutly new version and try to public it before the weekend.
Sin City
08-05-2003, 06:40 AM
sounds cool man... i hope it's easier to do than the last one :)
NexDog
08-24-2003, 10:16 AM
Ever get around to that, GenSec?
Sin City
08-27-2003, 05:36 AM
yeah.... what's da word big bird? :)
lasto
09-04-2003, 10:34 AM
GenSec posted on the 08-04-03 03:06 PM
Please, Don't use this hack! (post #205)
I made absolutly new version and try to public it before the weekend.
What weekend did he mean ?
anyway besides that ive re-installed this and it works fine.I took out the databse queries where it sent pms to users as they where gettign flooded with em and lets face it if you robbed then a pm aint gonna help you + the load it puts on your server with all them pms as well has gotta be bad.
The karma bit in this hack works pefect - love it - members have to be careful now cause they all like green dots but since adding this ive noticed a few go into the red so i knwo who the biggest theifs are now so i will target them all when they asleep :)
MaDCaT75
09-04-2003, 11:40 PM
INSTALLATION:
1. Create 2 new users.
Let say first is INSURANCE and has INSURANCEID.
The second is GODFATHERID and has GODFATHERID.
Donate some money to INSURANCE (starting Insurance Fund).
Also you need your ADMINID
2. Look at the next addon and
- change GODFATHERID, INSURANCEID and ADMINID to your numbers!!!
- If you don't use KARMA delete "KARMA= KARMA-$priz" from commands
- Change a few text comments. It's not the best english. Just to show the sence. (option)
- Change some crime rules (option).
They are: --- don't steal from user with money less $100
--- don't allow new user (with money less $100) to steal
--- don't steal the last $20
--- Mafia has a have amount from victim and from robber
--- Insurance pmt = 1/10 of Insurance Fund ( User with INSURANCEID)
--- Insurance bribe 1/5 from robber
This part makes no sense to me at all.
Roxie
09-08-2003, 05:41 AM
You need to create two new users on your board. Call them Insurance and Godfather. All users have an ID attached to them...a number. You will need to use those numbers in the code. You will also need your Admin ID number. In the code, replace GODFATHERID with the number that was given to Godfather.
Sliderx
10-01-2003, 05:55 PM
good work man
NuclioN
10-07-2003, 06:53 AM
We've used this hack from the beginning and our members are still loving it. Trough time this question comes up again and again... "how can we steal money so the victim gets a negative balance and cannot post anymore" !!!
In our situation only the thief can steal so he/she gets a negative balance and cannot post. How to make it so thiefs can steal other members in to a negative balance? Help please.
Darnell 0216
10-08-2003, 01:16 AM
You have to find the IF lines in Start Verify Stealing and Start Steal Change.
if (($getduser[storep]-$stealmoney)<20) {
if (($victim[storep]-$robber)<20) { // one more limit -- don't steal last $20
Change these two lines and it should let you steal more than what they have.
NuclioN
10-08-2003, 05:35 AM
Darnell i've changed both (($getduser[storep]-$stealmoney)<0) {
but however it shows the display where you can put the number of points you want to steal: "Buddy! Have conscience! Don't take the last"
What is the value to do this?
deathemperor
10-11-2003, 09:10 AM
Gensec, nice hack.
But, is there a way to stop user to steal all the money another one having ?
I dont know what I would be if I have 1,000,000 and with only a stealth, I have no thing :(
Frozen Dreams
10-28-2003, 09:50 AM
Could someone maybe help me with a Karma hack the stealing works with? Just a simple one - but users are stealing like crazy on my board, so I want them to think twice before risking bad karma.
And yeah limiting the maximum amount of money one is able to steal would be awesome.
Darnell 0216
10-28-2003, 02:59 PM
... And yeah limiting the maximum amount of money one is able to steal would be awesome.
Find:if ($rest<0) {
eval("standarderror(\"".gettemplate('store_steal_error')."\");");
}add below it:if if (($getduser[storep]/$stealmoney)>3/4) {
eval("standarderror(\"".gettemplate('store_steal_error')."\");");
}This will prevent a person from stealing more than %75 of the person's funds. Just change the 3/4 fraction to another fraction to increase/decrease the limit.
Limpkinw
11-12-2003, 08:56 PM
is there a way to limit theft attempts per day? also if someone hits backspace it allows them to steal beyond their current funds..is the a fix?
Limpkinw
11-12-2003, 09:03 PM
Also is there a way to track what is done by amdin i have serious cheating aftre it being up for 3 minutes.
Limpkinw
11-12-2003, 09:23 PM
Possible Error?
Sorry, you were robed for the sum of 250.
You received $1944 as insurance.
Darnell 0216
11-13-2003, 03:37 PM
Possible Error?
Sorry, you were robed for the sum of 250.
This isn't an error. The user recieves 10% of the Insurance User's funds. So if the InsuranceID has 30,000 points, the person will recieve 3,000 whether they were robbed for 1,000,000 or 10.
Darnell 0216
11-13-2003, 03:43 PM
Also is there a way to track what is done by amdin i have serious cheating aftre it being up for 3 minutes.
You would hafta find a way to bring the Admin Logging functions to the storeadmin page.
Limpkinw
11-13-2003, 03:52 PM
Ok i understand that, is this something someone has done?
Darnell 0216
11-15-2003, 06:51 PM
Ok i understand that, is this something someone has done?
Depending on how good your knowledge of php is, I'd take a look at the Moderator logging hack and see if you can alter it to your liking. I have the hack installed though I haven't dismantled it enough to tell you exactly what would be done.
Milhouse
11-20-2003, 05:16 PM
if (($getduser[storep]-$stealmoney)<20) {
eval("standarderror(\"".gettemplate('store_steal_limit')."\");");
what does that line of code mean.. like what restriction is it doing ...
DannyBoy8406
11-23-2003, 12:30 AM
Is there a way to edit Admin as well as the Godfather and Insurance accounts so that they don't show up on the "Top 10 Richest List"?
EvilWa
11-23-2003, 08:21 AM
if (($getduser[storep]-$stealmoney)<20) {
eval("standarderror(\"".gettemplate('store_steal_limit')."\");");
what does that line of code mean.. like what restriction is it doing ...
If victim's money is below 20 after be stolen, the action is disable.
sumofallfears
12-15-2003, 12:39 PM
Everything was going good until i did the query. I got this error message...
SQL-query :
INSERT INTO store
VALUES (
NULL , 'steal', 'Crime and punishment', '0', '0', 'thief.gif', 'It is not caught - not the thief', 'Y'
)
MySQL said:
Column count doesn't match value count at row 1
anyone have any suggestions?
when i bye the hacks it says click here and we cant can someone help me
zsmom
01-13-2004, 02:57 AM
when i bye the hacks it says click here and we cant can someone help me
Just remove that image from the templates (store_steal_insurance and store_steal_mafia) or insert your own image. That image link is old, it used to be an image of two eyes. It doesn't do anything, the option is already enabled, it was just there for looks.
erikajune
01-24-2004, 05:51 AM
What does this mean? And where do I delete it from? :)
If you don't use KARMA delete "KARMA= KARMA-$priz" from commands
erikajune
01-24-2004, 05:52 AM
Also, I'm getting a blank page when I click on any of the new features.
erikajune
01-24-2004, 08:34 PM
When I go to steal something I get this error message: Any suggestions? I don't use karma either.
Database error in vBulletin 2.3.4:
Invalid SQL: UPDATE user SET storep=storep-,KARMA=KARMA-0 WHERE userid='2'
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'KARMA=KARMA-0 WHERE userid='2'' at line 1
mysql error number: 1064
Date: Saturday 24th of January 2004 04:34:30 PM
Script: http://www.onlineparents.net/community/community/store.php
Referer: http://www.onlineparents.net/community/store.php
erikajune
01-26-2004, 03:59 AM
Ok, I've read the entire thread and others have had this problem yet no one has posted a fix to it.
Invalid SQL: UPDATE user SET storep=storep+25, WHERE userid='2'
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE userid='2'' at line 1
mysql error number: 1064
Anyone? Please! :ermm:
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.