Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Obibital

Pages: 1 ... 19 20 21 22 23 [24] 25 26 27 28 29 ... 36
346
Modification Help / Re: And another weapon pack
« on: July 26, 2010, 03:04:19 PM »

347
Modification Help / Re: And another weapon pack
« on: July 26, 2010, 03:00:08 PM »
I think my corn flakes just

348
Modification Help / Re: Using a switch to create a selectable list
« on: July 26, 2010, 12:03:46 PM »
Well, the named case does work, but it tells me in the console that that string always evaluates to 0

Still it worked :p

349
Modification Help / Re: Using a switch to create a selectable list
« on: July 26, 2010, 11:59:20 AM »
by the way it's currently looking for a "1" or a "2" after /potion

change the "1" in "case 1" to whatever you want if you want to make it "health" or whatever

"case health" would make it look for "/potion health"

Really? because of the appendix i was under the impression that switches could only read numerical values

350
Modification Help / Re: Using a switch to create a selectable list
« on: July 26, 2010, 11:54:24 AM »
%choice is whatever has been said after /potion

/potion mayonnaise

mayonnaise would then be %choice

Wow, this just became a whole lot easier

o3o derp


Edit:

Ok then, ive got the switch working fine, and now all i have to set up is the checks for the ingredients.
im planning on using if(%client.ingredient1 > 0 Ect......

Is that a bad idea?

351
Modification Help / Re: Using a switch to create a selectable list
« on: July 26, 2010, 11:48:17 AM »
So what your saying is, that the /potion command will be used aswell instead of making a /make#


By Potion Stuff do you mean the Checks for the ingrediants or....errrr

What would i be using to set the value of the %choice?

352
Modification Help / Using a switch to create a selectable list
« on: July 26, 2010, 08:33:56 AM »
No code at the moment, im just trying to figure how this would work, plus the fact that it takes some while to get a response.

Im making something like a pestle & mortar

you type /p&m help   and you get a list similar to
1. Health Potion - (names of ingredients)
2. Poison - (ingredients)
3. Ect.....


Then after choosing one with /create 1    or /create 2  it would call a switch that would figure out what ingredients to look for, then create it if you have what you need.



Is there an easier way to do this?
or do i have the right idea?

(p.s. Im a Massive Newbie)


-----------------------------------

This is what i have at the moment :p

Code: [Select]
//p&m.cs

function servercmdpotion(%client,%choice)
{
echo("p&m");
  switch(%choice)
    {
      case 1:
        //potion 1 stuff
        echo("Potion1");
        if(%client.redberry > 0 && %client.blueberry > 0)
          {
          echo("blu and red");
          }
         else
          {
          echo("Else");
          }
       case 2:
        //potion 2 stuff
        echo("Potion2");
       default:
         messageClient(%client,'','1. Health Potion - Red Berry(1), Glow Berry (1)');
    }
 
}

function servercmdpick(%client)
{
%client.redberry = 100;
%client.blueberry = 100;
}



That all worked

Ill tell all you people how it goes

353
I love how the poll only says

"i know how"

"I know someone who can"

354
Modification Help / Re: And another weapon pack
« on: July 22, 2010, 04:11:52 PM »
I already heard that theory. Until the infinite rotation is okay, maybe we can make energy out of that rotation, someday. But the thing with the world hunger is crap.

I meant the... strange-looking-face that looks like "I c what u did thar".



THAT
my good sir, will remain a mystery

I will leave you to ponder on this

355
Modification Help / Re: And another weapon pack
« on: July 22, 2010, 04:06:21 PM »
Its an anti-gravity design


Laws of nature =

1. Cats always land on their feet

2. Butter always land butter-side up


Attach a slice of toast butter-side up to a cats back, and it would create an infinite rotation, thus solving world hunger.

356
Modification Help / Re: And another weapon pack
« on: July 22, 2010, 04:01:52 PM »

357
Modification Help / Re: And another weapon pack
« on: July 22, 2010, 03:56:34 PM »
Im honestly not sure

358
Modification Help / Re: And another weapon pack
« on: July 22, 2010, 03:54:31 PM »






^Got your attention

359
Suggestions & Requests / Re: Odst as a player type or bot
« on: July 22, 2010, 03:49:56 PM »
talent i stared at your avatar and said does this guy think he is doing it and i said f that.>:)

Badass moment sponsered bye Shadowed999,Badspot,Blockhead22230,and Leah

What?

360
Suggestions & Requests / Re: Pistol / tactical knife.
« on: July 22, 2010, 03:46:12 PM »

Pages: 1 ... 19 20 21 22 23 [24] 25 26 27 28 29 ... 36