Archived copy of war3source.com, the War3Source forum (2009–2020), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2012-09-22 (original capture). Forum · All archived topics · Wiki · Bug tracker · Blog
Chat

War3:Source
September 21, 2012, 09:05:01 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Download: http://war3source.com/index.php?board=9.0
What is War3Source?: http://war3source.com/index.php?topic=200.0
Sample Stats: http://war3source.com/war3stats
Steam Community Group: http://steamcommunity.com/groups/war3source
War3Source SVN Checkout: http://ownageclan.com/svn/war3source/
War3Source servers: http://www.game-monitor.com/search.php?vars=war3_version=
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: shopmenu2  (Read 520 times)
Bower
Newbie
*
Posts: 2


View Profile Email
« on: April 17, 2012, 03:34:41 AM »

Hi everybody,

I have a question I'd like to ask, if somebody could help me. Is there an english tutorial about the shopmenu2 items ? I've searched the forum and found nothing of the sort. I would like to know a brief description about the 5 items from the shopmenu2, what properties they have and how do diamonds are gain in the game. In the war3menu I didn't find any description, so I came to the source of the mod and hoped to find some or all the answers  Grin

Thanks in advance !
Best of luck !
Regs. Bower !
« Last Edit: April 23, 2012, 12:44:49 AM by Bower » Logged
.:.FK.:.DiGGaBoON.:.
Jr. Member
**
Posts: 64


View Profile
« Reply #1 on: April 22, 2012, 01:38:31 PM »

As far as I remember and if it wasn't changed:

Post Haste:                        3% faster run/walk
Trinket of Regeneration:        reg 0.5HP/s
Lifetube:                            reg 1HP/s
Snake Bracelet:                   5% evasion
Fortified Bracers:                 +10 HP

Diamonds are rewarded 1 per minute of playing.
« Last Edit: April 22, 2012, 02:13:59 PM by .:.FK.:.DiGGaBoON.:. » Logged
Chuck
Jr. Member
**
Posts: 98


View Profile Email
« Reply #2 on: April 23, 2012, 12:42:00 AM »

wondering if anyone can help me that to make it vip only allow to use it example in sourceban admin VIP is set letter t! if soemone can! i'm willing to pay $5
Logged
Revan
Sr. Member
****
Posts: 263



View Profile
« Reply #3 on: April 23, 2012, 12:55:45 AM »

Aren't there shopmenu2 accessflags ?
Logged

Chuck
Jr. Member
**
Posts: 98


View Profile Email
« Reply #4 on: April 23, 2012, 04:37:38 PM »

Nope!
« Last Edit: April 23, 2012, 08:07:11 PM by Chuck » Logged
Revan
Sr. Member
****
Posts: 263



View Profile
« Reply #5 on: April 24, 2012, 05:09:55 AM »

Grab new Engine MenuShopmenu2 from SVN
see line 9 there should be a #define
just uncomment this, set your desired flag and recompile
ADMFLAG_CUSTOM6 should be "t" (I think)
Logged

iceman
Full Member
***
Posts: 160



View Profile
« Reply #6 on: April 24, 2012, 03:44:46 PM »

Nice Smiley this anything to worry about?

//SourceMod Batch Compiler
// by the SourceMod Dev Team


//// War3Source_Engine_MenuShopmenu2.sp
// C:\Users\Admin\Documents\scriptingSMX\war3source.r708\War3Source_Engine_MenuS
hopmenu2.sp(34) : warning 213: tag mismatch
// C:\Users\Admin\Documents\scriptingSMX\war3source.r708\War3Source_Engine_MenuS
hopmenu2.sp(140) : warning 213: tag mismatch
// Header size:           4956 bytes
// Code size:            21484 bytes
// Data size:             8124 bytes
// Stack/heap size:      16384 bytes; Total requirements:   50948 bytes
//
// 2 Warnings.
//
// Compilation Time: 0.73 sec
// ----------------------------------------

Press enter to exit ...
Logged
Revan
Sr. Member
****
Posts: 263



View Profile
« Reply #7 on: April 24, 2012, 11:37:31 PM »

Seems like you have used a wrong flag, Show what you entered
Logged

iceman
Full Member
***
Posts: 160



View Profile
« Reply #8 on: April 25, 2012, 04:48:46 AM »

derp i was looking at access levels nvm.
Logged
Chuck
Jr. Member
**
Posts: 98


View Profile Email
« Reply #9 on: May 09, 2012, 06:16:55 PM »

does it work if it running with sourcebans? somehow it doesnt work when player using "t" but if you have root acess then it works.... all i did is uncomment the admin custom6....
Logged
-El Diablo
Full Member
***
Posts: 175


View Profile
« Reply #10 on: May 21, 2012, 01:28:02 PM »

does it work if it running with sourcebans? somehow it doesnt work when player using "t" but if you have root acess then it works.... all i did is uncomment the admin custom6....

change //#define SHOPMENU2_FLAG ADMFLAG_ROOT to this:
#define SHOPMENU2_FLAG ADMFLAG_CUSTOM6

on line 9.  That should work for "t" flags.

I've not tried this yet, because im at work, but you could try changing the line to look like this for those whom have flag "a":

#define SHOPMENU2_FLAG ADMFLAG_RESERVATION

Admins with the flag "a" should be allowed to use it.

Here are other ADMFLAG:

#define  ADMFLAG_RESERVATION   (1<<0)
#define  ADMFLAG_GENERIC   (1<<1)
#define  ADMFLAG_KICK   (1<<2)
#define  ADMFLAG_BAN   (1<<3)
#define  ADMFLAG_UNBAN   (1<<4)
#define  ADMFLAG_SLAY   (1<<5)
#define  ADMFLAG_CHANGEMAP   (1<<6)
#define  ADMFLAG_CONVARS   (1<<7)
#define  ADMFLAG_CONFIG   (1<<Cool
#define  ADMFLAG_CHAT   (1<<9)
#define  ADMFLAG_VOTE   (1<<10)
#define  ADMFLAG_PASSWORD   (1<<11)
#define  ADMFLAG_RCON   (1<<12)
#define  ADMFLAG_CHEATS   (1<<13)
#define  ADMFLAG_ROOT   (1<<14)
#define  ADMFLAG_CUSTOM1   (1<<15)
#define  ADMFLAG_CUSTOM2   (1<<16)
#define  ADMFLAG_CUSTOM3   (1<<17)
#define  ADMFLAG_CUSTOM4   (1<<18)
#define  ADMFLAG_CUSTOM5   (1<<19)
#define  ADMFLAG_CUSTOM6   (1<<20)
#define  INVALID_GROUP_ID   -1

You can find this information on the webpage: http://docs.sourcemod.net/dox/_i_admin_system_8h.html


Also what is helpful:

Levels
First, let's quickly run down the provided levels:

Name  Flag  Purpose 
reservation  a  Reserved slot access. 
generic  b  Generic admin; required for admins. 
kick  c  Kick other players. 
ban  d  Ban other players. 
unban  e  Remove bans. 
slay  f  Slay/harm other players. 
changemap  g  Change the map or major gameplay features. 
cvar  h  Change most cvars. 
config  i  Execute config files. 
chat  j  Special chat privileges. 
vote  k  Start or create votes. 
password  l  Set a password on the server. 
rcon  m  Use RCON commands. 
cheats  n  Change sv_cheats or use cheating commands. 
root  z  Magically enables all flags. 
custom1  o  Custom Group 1. 
custom2  p  Custom Group 2. 
custom3  q  Custom Group 3. 
custom4  r  Custom Group 4. 
custom5  s  Custom Group 5. 
custom6  t  Custom Group 6. 

From webpage: http://wiki.alliedmods.net/Adding_Admins_(SourceMod)

If you need flag "t" and your sure that is what you need, then this should be on line 9:

#define SHOPMENU2_FLAG ADMFLAG_CUSTOM6


Hope I didn't confuse you.  Hope this helps.
Logged
Revan
Sr. Member
****
Posts: 263



View Profile
« Reply #11 on: May 21, 2012, 02:10:25 PM »

We could just add a cvar with flag string support, I've made that preprocessor crap just because I was in rush and thought that isn't used much
Logged

iceman
Full Member
***
Posts: 160



View Profile
« Reply #12 on: May 27, 2012, 10:39:48 AM »

We could just add a cvar with flag string support, I've made that preprocessor crap just because I was in rush and thought that isn't used much

Please one less thing to remember when updating.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!