vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Pickpocket in Lesane Store (https://vborg.vbsupport.ru/showthread.php?t=38383)

wintz 05-26-2002 08:12 AM

Thanks alot m8, looks like thats sorted it ;)

Blue2000 05-26-2002 08:12 PM

Quote:

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

PHP Code:

    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

PHP Code:

$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

Quote:

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

Quote:

Originally posted by Blue2000



i still need help with this please if anyone can.

Just change your message template to
PHP Code:

[B]$stealusername![/B] [B]Sorryyou were robed by $bbuserinfo[username] for the sum $robber. [/B] [quote]It was very smart robberyWe didn't take them. [/quote] 

$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

Quote:

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

Quote:

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
Code:

  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


All times are GMT. The time now is 08:30 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.01918 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (3)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete