Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Pickpocket in Lesane Store Details »»
Pickpocket in Lesane Store
Version: 1.00, by GenSec GenSec is offline
Developer Last Online: Jun 2010 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 05-06-2002 Last Update: Never Installs: 32
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #52  
Old 05-20-2002, 04:20 PM
GenSec GenSec is offline
 
Join Date: Oct 2001
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Roxie
The only line that is similar to that is :

Quote:
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
Quote:
if ($bbuserinfo[posts]<5) {
in both two places?
Reply With Quote
  #53  
Old 05-20-2002, 05:07 PM
Roxie's Avatar
Roxie Roxie is offline
 
Join Date: May 2002
Location: on vb.org
Posts: 526
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is what I have:

Quote:
// ###################### Start steal Lookup ###########
if ($action=="steal") {
if ($bbuserinfo[posts]<50) { // victim should have more than $50
eval("standarderror(\"".gettemplate('store_steal_c annot')."\");");
}
$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_c annot')."\");");
}
$getduser=$DB_site->query_first("SELECT userid,usertitle,username,storep,usergroupid FROM user WHERE username='".addslashes(htmlspecialchars($stealuser name))."'");
if ($getduser[storep]<50) { // victim should have more than $100
eval("standarderror(\"".gettemplate('store_steal_p oor')."\");");
}
if ($getduser[usergroupid]=="6") { // don't steal from admin
eval("standarderror(\"".gettemplate('store_givetit le_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" )."\");");
}
}
Reply With Quote
  #54  
Old 05-20-2002, 05:20 PM
GenSec GenSec is offline
 
Join Date: Oct 2001
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Roxie
I'm on your board
Let's tune it right there
Reply With Quote
  #55  
Old 05-20-2002, 06:06 PM
ULTIMATESSJ's Avatar
ULTIMATESSJ ULTIMATESSJ is offline
 
Join Date: Nov 2001
Location: Bristol, England
Posts: 315
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #56  
Old 05-20-2002, 06:12 PM
GenSec GenSec is offline
 
Join Date: Oct 2001
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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"?
Reply With Quote
  #57  
Old 05-20-2002, 08:13 PM
ULTIMATESSJ's Avatar
ULTIMATESSJ ULTIMATESSJ is offline
 
Join Date: Nov 2001
Location: Bristol, England
Posts: 315
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by GenSec

Do you have in user table the field "KARMA"?
if u mean in phpmyadmin, no i don't
Reply With Quote
  #58  
Old 05-21-2002, 05:18 AM
GenSec GenSec is offline
 
Join Date: Oct 2001
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #59  
Old 05-21-2002, 02:26 PM
ULTIMATESSJ's Avatar
ULTIMATESSJ ULTIMATESSJ is offline
 
Join Date: Nov 2001
Location: Bristol, England
Posts: 315
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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
Reply With Quote
  #60  
Old 05-21-2002, 02:56 PM
GenSec GenSec is offline
 
Join Date: Oct 2001
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just delete
PHP Code:
,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.
Reply With Quote
  #61  
Old 05-21-2002, 10:11 PM
Roxie's Avatar
Roxie Roxie is offline
 
Join Date: May 2002
Location: on vb.org
Posts: 526
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:39 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07473 seconds
  • Memory Usage 2,312KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete