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
  #152  
Old 08-24-2002, 08:09 PM
Lovaboye Lovaboye is offline
 
Join Date: Apr 2002
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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.


Quote:
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?
Reply With Quote
  #153  
Old 08-25-2002, 10:24 AM
critical critical is offline
 
Join Date: May 2002
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

pls tell me wats the difference between +++++ and insurance?!? gladly appreciated.. my user keep pestering me
Reply With Quote
  #154  
Old 08-29-2002, 02:08 PM
Mr_P Mr_P is offline
 
Join Date: Jan 2002
Location: Uk.
Posts: 202
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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.
Reply With Quote
  #155  
Old 09-03-2002, 07:53 AM
Mr_P Mr_P is offline
 
Join Date: Jan 2002
Location: Uk.
Posts: 202
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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.
Reply With Quote
  #156  
Old 09-08-2002, 08:29 AM
Obi-Wan Obi-Wan is offline
 
Join Date: Feb 2002
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did all there was to do for all I know but when I wanna insure/steal I get just this:

Quote:
// ###################### 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_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]<100) { // 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]<100) { // victim should have more than $100 eval("standarderror(\"".gettemplate('store_steal_p oor')."\");"); } 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($stealuser name))."'"); $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_l imit')."\");"); } $need=$points + $stealmoney; $rest=$getduser[storep] - $stealmoney; if ($rest<0) { eval("standarderror(\"".gettemplate('store_steal_e rror')."\");"); } 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?
Reply With Quote
  #157  
Old 09-10-2002, 08:49 AM
Obi-Wan Obi-Wan is offline
 
Join Date: Feb 2002
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*bump*

Anybody ??
Reply With Quote
  #158  
Old 09-10-2002, 01:01 PM
azork azork is offline
 
Join Date: Dec 2001
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
  #159  
Old 09-11-2002, 01:17 PM
azork azork is offline
 
Join Date: Dec 2001
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Prison hack: a page where you can see all members with negative points.
Reply With Quote
  #160  
Old 09-15-2002, 07:14 PM
Cold Steel's Avatar
Cold Steel Cold Steel is offline
 
Join Date: Nov 2001
Location: Manhattan
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #161  
Old 09-17-2002, 12:14 AM
Cold Steel's Avatar
Cold Steel Cold Steel is offline
 
Join Date: Nov 2001
Location: Manhattan
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
if ($bbuserinfo[posts]<100 OR $bbuserinfo[storep]<0) {
What would the above code do, in terms of restricting people from stealing?
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 12:49 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04616 seconds
  • Memory Usage 2,317KB
  • Queries Executed 27 (?)
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_code
  • (5)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_postinfo_query
  • fetch_postinfo
  • 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