Archived copy of warcraft-source.com, the Warcraft: Source (WCS) forum (2007–2011), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2010-01-31 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
January 31, 2010, 10:18:31 AM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: WCS Tournament being opened for applications!

Post here for signups!
Google  
  Home   Forum   Help Search Login Register   *
Pages: [1] 2 3   Go Down
  Print  
This topic has not yet been rated! You have not rated this topic. Select a rating:
Author Topic: WCS: adminxp!!!  (Read 3070 times)
Phat_Wizard
<WCS coder>
Level 7 Expert
*****
Offline Offline

Canada Canada

Posts: 229




Phat_Wizard
phatwizard
« on: January 14, 2008, 01:26:03 AM »

It has been a while since I have posted much of anything, so I thought that I should post this add-on i have just recently coded that will enable all WCSadmins to open a menu that they can see when they hit esc. From this menu they can give themselves xp/lvl very easily and quickly by entering a number in the box and and clicking 1 button! no more clicking that button 32 times.


How To Use: Open your client console then type "wcs_adminxp" in the client console then press enter to open the menu. After that press which ever button you want (xp/lvl give) and then in the new window enter what ever value you want into the input box then press ok.

NOTE: requires EventScripts v2.0beta247 and WCS v0.77!!!

Command: wcs_adminxp
//run in client console.


wcs/WCSaddons/adminxp/es_adminxp.txt
Code
GeSHi (eventscripts):
block load
{
   es_xset wcs_tinput 0
   es_xset wcs_input 0
   es_xset wcs_uid 0
   es_xset wcs_steamid 0
   es_xset wcs_tmp 0
   es_xexists ex clientcommand wcs_adminxp
   if (server_var(ex) = 0) then es_xregclientcmd wcs_adminxp wcs/WCSaddons/adminxp/wcs_adminxp_menu "esc menu for giving xp/lvl to yourself"
   es_xexists ex saycommand wcs_adminxp
   if (server_var(ex) = 0) then es_xregsaycmd wcs_adminxp wcs/WCSaddons/adminxp/wcs_adminxp_menu "esc menu for giving xp/lvl to yourself"
   es_xexists ex clientcommand wcs_adminxp_input
   if (server_var(ex) = 0) then es_xregclientcmd wcs_adminxp_input wcs/WCSaddons/adminxp/inputbox "esc input for giving xp/lvl to yourself"
}
 
block wcs_adminxp_menu
{
   es_xset wcs_uid 0
   es_xset wcs_steamid 0
   es_xgetcmduserid wcs_uid
   es_exists ex userid server_var(wcs_uid)
   if (server_var(ex) = 1) then es_getplayersteamid wcs_steamid server_var(wcs_uid)
   es_exists ex key WCSadmin server_var(wcs_steamid)
   if (server_var(ex) = 1) then es_escmenu 10 server_var(wcs_uid) "WCS: adminxp menu" "click a button to open the xp or lvl giving menu" "-> Give Xp" "-> Give Level(s)"
}
 
event es_client_command
{
   if (event_var(command) == menuselect) do
   {
       es_xset wcs_steamid 0
       es_exists ex userid event_var(userid)
       if (server_var(ex) = 1) then es_getplayersteamid wcs_steamid event_var(userid)
       es_exists ex key WCSadmin server_var(wcs_steamid)
       if (server_var(ex) = 1) do
       {
           if (event_var(commandstring) == 1) then es_escinputbox 10 event_var(userid) "Give_Xp" "Entrer the amount of xp to give yourself:" "wcs_adminxp_input adminxp_xp"
           if (event_var(commandstring) == 2) then es_escinputbox 10 event_var(userid) "Give_Lvl" "Entrer the amount of lvl(s) to give yourself:" "wcs_adminxp_input adminxp_lvl"
       }
   }
}
 
block inputbox
{
   es_xgetcmduserid wcs_uid
   es_xgetargv wcs_tinput 1
   es_xgetargv wcs_input 2
   if (server_var(wcs_tinput) = "adminxp_xp") then wcs_givexp server_var(wcs_uid) server_var(wcs_input) "" 1
   if (server_var(wcs_tinput) = "adminxp_lvl") then wcs_givelevel server_var(wcs_uid) server_var(wcs_input) "" 1
}
 

wcs/WCSaddons/es_WCSaddons_db.txt
Code
GeSHi (eventscripts):
 "adminxp"
 {
   "author"      "Phat_Wizard"
   "description" "esc menu to give self a lot of xp/lvl very easy and fast!!!"
   "version"     "v0.1a"
   "enabled"     "1"
 }
 

You must create the appropriate folder and file for the main code and then add in the add-ons data base stuff so that it will load then you should be done.


Now for some screen shots:

Shot at 2008-01-13

Shot at 2008-01-13



Please if you have any comments or bugs or anything to report please post here. Also if you are just using this add-on I would like to know just to see if people actually use it.



UPDATES:
<Jan 30, 2008> : Fixed bug that made it possible for everyone to open the menu. {still a minor bug if user is a wcs admin}
<Jan 19, 2008> : Added *.zip of v0.1
<Jan 19, 2008> : Added *.rar of v0.1
<Jan 19, 2008> : Added say command "wcs_adminxp"

[attachment deleted by admin - older than 200 days!]
« Last Edit: January 31, 2008, 02:40:48 AM by Phat_Wizard » Logged

::wavez::
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 55


We need some flaming homeless people flying around


WWW
::two Kings:: wavez
« Reply #1 on: January 14, 2008, 03:44:49 AM »

so if i'm renting a server from a provider.. all i have to do to install eventscripts 2.0 is unzip all the files into my ftp directory, correct?  and it would work?


CAUSE MAN I WANT TO INSTALL YOUR MENU HOLY SHIZZATS
Logged

Phat_Wizard
<WCS coder>
Level 7 Expert
*****
Offline Offline

Canada Canada

Posts: 229




Phat_Wizard
phatwizard
« Reply #2 on: January 14, 2008, 04:29:39 AM »

If you are renting a server I would first ask your provider if they can install it for you, but if not then it should work if you just unzip it into the correct folder. But be warned! You must stop your server before upgrading ES. I would suggest also going here for more detailed instructions.

PS: thx for such nice "huge" comment. Tongue

PSS: I just noticed getting the link that there is a newer version... ES v2.0 beta247!
Logged

Kilroy
Level 1 Trained Beginner
*
Offline Offline

United States United States

Posts: 32



Kilroy
rakkasan123
« Reply #3 on: January 15, 2008, 12:43:57 AM »

I LOVE IT
ITS SO AWSOME
Logged
c6464
Guest
« Reply #4 on: January 15, 2008, 09:15:15 PM »

can you give others xp with it? else its useless...
Logged
Rasmus
Trapped in between
Level 7 Expert
*****
Offline Offline

Denmark Denmark

Posts: 1472




Rasmus4J
rasmus4j
« Reply #5 on: January 16, 2008, 12:15:57 PM »

i installed es 2.0 myself on a friends server.. no problem doing that
Logged

where would you put the comma in the following telegram from a wife, to her husband in the navy?
"Not getting any better hurry home!"
=DR= king
Level 5 Trained Intermediate
*****
Offline Offline

Canada Canada

Posts: 113




JKING237
007king
« Reply #6 on: January 18, 2008, 12:54:55 PM »

i added it to our server but it dont work wtf?
Logged
Rasmus
Trapped in between
Level 7 Expert
*****
Offline Offline

Denmark Denmark

Posts: 1472




Rasmus4J
rasmus4j
« Reply #7 on: January 18, 2008, 01:00:25 PM »

es or adminxp?
Logged

where would you put the comma in the following telegram from a wife, to her husband in the navy?
"Not getting any better hurry home!"
Phat_Wizard
<WCS coder>
Level 7 Expert
*****
Offline Offline

Canada Canada

Posts: 229




Phat_Wizard
phatwizard
« Reply #8 on: January 18, 2008, 10:06:23 PM »

One, what version of WCS and ES do you have??? Two please give more info about whats not working... just not "It doesn't work...".  Wink
Logged

Rasmus
Trapped in between
Level 7 Expert
*****
Offline Offline

Denmark Denmark

Posts: 1472




Rasmus4J
rasmus4j
« Reply #9 on: January 18, 2008, 10:53:08 PM »

i got a problem to... (ES 2.0, wcs 0.77)
first time its installed and you restart the server, its fine. until you want to give lvls and such, then it sometimes tells "unknown_command adminxp_something something, cant quite remember:(
then when you start server again, press esc. it doesnt popup...
but as i have asked you, maybe you could post it again inside the #... or just attach the entire files to a post=?
Logged

where would you put the comma in the following telegram from a wife, to her husband in the navy?
"Not getting any better hurry home!"
=DR= king
Level 5 Trained Intermediate
*****
Offline Offline

Canada Canada

Posts: 113




JKING237
007king
« Reply #10 on: January 18, 2008, 11:01:34 PM »

ES 2.0, wcs 0.77 thats the stuff our server has and it says unknown command
the wcs_adminxp
Logged
Phat_Wizard
<WCS coder>
Level 7 Expert
*****
Offline Offline

Canada Canada

Posts: 229




Phat_Wizard
phatwizard
« Reply #11 on: January 19, 2008, 05:30:03 AM »

@ "5 Halls = diare"
Ok to start off, were are you typing the command exactly? Are you use server console, rcon, client console or what?
Also, for the 3 top things in my section i added a "spoiler" button with the code inside the # thing as you asked... maybe you missed it. Tongue

@ "-|-HS-|- king"
For one thing, double check that all the files and folders are spelled correctly and same thing as Halls, were are you typing the command?


PS: For when I do eventually code a better version of this I will include a zipped folder containing all the files to help in dire situations...  :lol:
Logged

Rasmus
Trapped in between
Level 7 Expert
*****
Offline Offline

Denmark Denmark

Posts: 1472




Rasmus4J
rasmus4j
« Reply #12 on: January 19, 2008, 04:30:33 PM »

i type no command, i put the plugintext in es_adminxp.txt inside addons folder, and then i add the lines into wcsaddons.txt (the folder the instructions tells)... thats it, then i open server and press Esc, but nothing happens? if i look in the ingame console it tells me: unknown command adminxp_something... (what HS says)
Logged

where would you put the comma in the following telegram from a wife, to her husband in the navy?
"Not getting any better hurry home!"
Phat_Wizard
<WCS coder>
Level 7 Expert
*****
Offline Offline

Canada Canada

Posts: 229




Phat_Wizard
phatwizard
« Reply #13 on: January 19, 2008, 05:07:41 PM »

well to use this menu you must type a command to open it just like the normal admin menu, but the difference is that you must type "wcs_adminxp" in the CLIENT CONSOLE! To open the client console you must press the "~" button. And if it doesn't open you can enable it through the advanced keyboard options I think.

Also be 100% sure that the "es_adminxp.txt" is in this path "wcs/WCSaddons/adminxp/HERE!!!".
Logged

Rasmus
Trapped in between
Level 7 Expert
*****
Offline Offline

Denmark Denmark

Posts: 1472




Rasmus4J
rasmus4j
« Reply #14 on: January 19, 2008, 05:15:56 PM »

i had in the right folder... but didnt the release note say: press Esc and then you get the menu?
Logged

where would you put the comma in the following telegram from a wife, to her husband in the navy?
"Not getting any better hurry home!"
Pages: [1] 2 3   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
January 30, 2010, 08:48:38 PM
wcs_alpha is used for effects to determine how visible/bright/see-through an effect is.
January 30, 2010, 05:44:23 PM
Has nothing to do with the speed. wcs_alpha is just a variable which can be used anywhere.
January 30, 2010, 05:40:44 PM
oh and thank you ^.^
January 30, 2010, 05:40:32 PM
ohh... but it shouldnt be with the settings of speed right?
January 30, 2010, 12:19:50 AM
wcs_alpha actually doesn't affect the invis as far as I know, it's just a variable which goes by wcs_invis.
January 29, 2010, 11:20:18 PM
ha ha copy paste fail below >.>
January 29, 2010, 11:19:30 PM
# Jessory: ok i got the answer.. i figured it was about the transperacy and i was right. except i seen wcs_alpha in the settings with speed... so it confused me abit and made me wonder why alpha was with speed.. found out its just extra crap is all
Recent
[Today at 02:33:17 AM]

by amiq
[Today at 02:18:57 AM]

[Today at 01:05:12 AM]

by amiq
[January 30, 2010, 10:13:03 PM]

[January 30, 2010, 09:03:05 PM]

[January 30, 2010, 08:12:16 PM]

[January 30, 2010, 03:50:21 PM]

[January 30, 2010, 01:24:55 PM]

[January 30, 2010, 08:54:50 AM]

[January 30, 2010, 07:39:49 AM]
Theme switch

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2009, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!
Page created in 0.313 seconds with 24 queries.