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 2009-07-11 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
July 11, 2009, 02:27:56 AM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Please obey the rules, to achieve a pleasent order in our community.
Google  
  Home   Forum   Help Search Login Register   *
Pages: [1]   Go Down
  Print  
This topic has not yet been rated! You have not rated this topic. Select a rating:
Author Topic: [Oddity]Mystery Egg Nog ~{Shopmenu}~  (Read 321 times)
[Oddity]TeacherCreature
Moderator
Level 7 Master
*****
Online Online

United States United States

Posts: 1358



WWW
bonggged

myServer 63.209.33.64:27015
(Warning: click connects through Steam)
« on: December 22, 2008, 01:02:05 AM »

Eggnog, also egg nog, is a sweetened dairy-based beverage made with milk, cream, sugar, beaten eggs (which gives it a frothy texture) and flavoured with ground cinnamon and nutmeg; alcoholic versions also exist with the addition of various liquors, such as brandy, rum, and whiskey.


In the spirit of the hollidays allow me to pour you some eggnog. Is it spiked, well try a glass and find out!

Code:
"4"
  {
  "name"        "Odditys Mystery Eggnog (bottoms up)"
  "description" "Random effects good and bad!"
  "category"    "1"
  "cost"        "4000"
  "level"       "0"
  "dab"         "2"
  "duration"    "1"
  "maxamount"   "1"
  "itemconfig"  "player_buy"
  "shopalias_odd1"  "es est_health event_var(userid) 50;es es_xtell event_var(userid) #multi #greenYou drink your eggnog and gain #lightgreen 50 #green health."
  "shopalias_odd2"  "es playerset speedadd event_var(userid) 0.2;es es_xtell event_var(userid) #multi #greenYou drink your eggnog and gain #lightgreen 0.2 #green speed."
  "shopalias_odd3"  "es est_setgravity event_var(userid) 0.8;es_keysetvalue WCSuserdata event_var(userid) longjump 1.3;es es_xtell event_var(userid) #multi #greenYou drink your eggnog and gain #lightgreen jumping #green abilities."
  "shopalias_odd4"  "es_keysetvalue WCSuserdata event_var(userid) regeneration 1;es_keysetvalue WCSuserdata event_var(userid) regen_round server_var(wcs_roundcounter);es_delayed 1 wcs_regeneration event_var(userid) 1 1 300 -1 10;es es_xtell event_var(userid) #multi #greenYou drink your #lightgreeneggnog #greenand begin to #lightgreenregenerate #greenhealth"
  "shopalias_odd5"  "es wcs_givexp event_var(userid) 200 0 1;es es_xtell event_var(userid) #multi #greenYou drink your #lightgreeneggnog #greenand gain #lightgreen200 #greenexperience."
  "shopalias_odd6"  "es wcs_dealdamage event_var(userid) event_var(userid) 50;es es_xtell event_var(userid) #multi #greenYou drink your #lightgreeneggnog #greenand lose #lightgreen50 #greenhealth."
  "shopalias_odd7"  "es playerset speedadd event_var(userid) -0.2;es es_xtell event_var(userid) #multi #greenYou drink your eggnog and lose #lightgreen 0.2 #green speed."
  "shopalias_odd8"  "es es_xtell event_var(userid) #multi #greenYou drink your eggnog and #lightgreen nothing #green happens!"
  "shopalias_odd9"  "es wcs_dealdamage event_var(userid) event_var(userid) 5;es es_delayed 1 wcs_dealdamage event_var(userid) event_var(userid) 5;es es_delayed 2 wcs_dealdamage event_var(userid) event_var(userid) 5;es es_delayed 3 wcs_dealdamage event_var(userid) event_var(userid) 5;es es_delayed 4 wcs_dealdamage event_var(userid) event_var(userid) 5;es es_delayed 5 wcs_dealdamage event_var(userid) event_var(userid) 5;es es_delayed 6 wcs_dealdamage event_var(userid) event_var(userid) 5;es es_delayed 7 wcs_dealdamage event_var(userid) event_var(userid) 5;es es_delayed 8 wcs_dealdamage event_var(userid) event_var(userid) 5;es es_delayed 9 wcs_dealdamage event_var(userid) event_var(userid) 5;es es_delayed 10 wcs_dealdamage event_var(userid) event_var(userid) 5"
  "cmdbuy"      "es_xrand wcs_random 1 9;es es_xif (server_var(wcs_random) = 1) then shopalias_odd1;es es_xif (server_var(wcs_random) = 2) then shopalias_odd2;es es_xif (server_var(wcs_random) = 3) then shopalias_odd3;es es_xif (server_var(wcs_random) = 4) then shopalias_odd4;es es_xif (server_var(wcs_random) = 5) then shopalias_odd5;es es_xif (server_var(wcs_random) = 6) then shopalias_odd6;es es_xif (server_var(wcs_random) = 7) then shopalias_odd7;es es_xif (server_var(wcs_random) = 8) then shopalias_odd8;es es_xif (server_var(wcs_random) = 9) then shopalias_odd9"
  "cmdactivate" "0"
  }
Logged

Rotgutts
Watchdogs
Level 7 Master
*****
Offline Offline

United States United States

Posts: 313


Krechure Feature



Merzlin
Merzlin
« Reply #1 on: December 22, 2008, 01:49:06 AM »

All I have to say is great Idea, and nice work man.
Logged

akasasori
Level 6 Experienced
******
Offline Offline

France France

Posts: 206



« Reply #2 on: December 22, 2008, 02:39:30 AM »

very great idea oddity Wink
but 4000$,it isnt so many $?
Logged
[Oddity]TeacherCreature
Moderator
Level 7 Master
*****
Online Online

United States United States

Posts: 1358



WWW
bonggged

myServer 63.209.33.64:27015
(Warning: click connects through Steam)
« Reply #3 on: December 22, 2008, 03:21:17 AM »

Well on my server we dotn have a shopmenu.. we have 2 items - 1 is 4000 for 100 xp the other is 7500 for 200xp
So on my server it works fine, but by all means adapt it for your own.
Logged

Zawmbee
Level 7 Master
*******
Offline Offline

United States United States

Posts: 451


The GUARDIAN


« Reply #4 on: December 22, 2008, 05:07:45 AM »

Coding is wrong, for random.  Odd 1 and Odd 9 shouldn't be a possible choice because you have the random picking a number between 1 and 9, not actually 1 and 9.  Set it to 0 and 10 for the possibilities.  Unless it is working, then that is weird lol... that eggnog looks nasty.
Logged


(Anyone who C&P's my races, give credit, TY)
[Oddity]TeacherCreature
Moderator
Level 7 Master
*****
Online Online

United States United States

Posts: 1358



WWW
bonggged

myServer 63.209.33.64:27015
(Warning: click connects through Steam)
« Reply #5 on: December 22, 2008, 03:16:53 PM »

Works fine.. es_xrand <variable> 1 9 chooses either  1 | 2 | 3 | 4 | 5 | 6 | 7 |8 | 9
Logged

Koshy
Level 7 Master
*******
Offline Offline

Canada Canada

Posts: 585



WWW
koshyy
koshy

myServer 216.246.49.100:27015
(Warning: click connects through Steam)
« Reply #6 on: December 22, 2008, 04:06:25 PM »

Coding is wrong, for random.  Odd 1 and Odd 9 shouldn't be a possible choice because you have the random picking a number between 1 and 9, not actually 1 and 9.  Set it to 0 and 10 for the possibilities.  Unless it is working, then that is weird lol... that eggnog looks nasty.

Dude you need to get off Oddity's eggnog... rand 1 9 = FROM 1 TO AND INCLUDING 9 -.- seriously wow

ZOMG I SHOULD POST MY PRESENT HERE !!!11! L:D
Logged

<--- WCS MOD
Zawmbee
Level 7 Master
*******
Offline Offline

United States United States

Posts: 451


The GUARDIAN


« Reply #7 on: December 22, 2008, 06:25:18 PM »

Oh, sorry then.  Didn't know because a race I made for some reason didn't allow 1 and the other number.  I dunno what was going on there.  Anyways, good item.
Logged


(Anyone who C&P's my races, give credit, TY)
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
July 10, 2009, 02:22:30 PM
go in a forum; go into a topic; down below youll find a reply button
July 10, 2009, 02:15:52 PM
can anyone help me i dont know how to post posts.
July 10, 2009, 02:15:40 PM
sup fellas
July 10, 2009, 01:39:30 PM
dashi619 read pm i send you
July 10, 2009, 12:48:28 PM
help?
July 10, 2009, 10:22:56 AM
ME Tongue
July 10, 2009, 09:49:06 AM
SOMEONE HELP?HuhHuhHuh i need coding help BAD its an emergancy
 my steam name is
$$$$NJO$$$$ Dashi
add me
Recent
[Today at 05:47:29 AM]

[July 10, 2009, 11:23:43 PM]

[July 10, 2009, 09:53:21 PM]

[July 10, 2009, 08:14:56 PM]

[July 10, 2009, 06:37:15 PM]

[July 10, 2009, 06:26:05 PM]

by M.R.
[July 10, 2009, 05:46:53 PM]

[July 10, 2009, 05:21:07 PM]

by maze
[July 10, 2009, 03:47:19 PM]

[July 10, 2009, 01:38:27 PM]
Theme switch

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