What is this code

03/17/2010 22:32 MightyMan17#1
hello im new and i need the code for this
this is the code in npcdialog:
Code:
if (GC.MyChar.InventoryContains(720028, 1))
So what is the code to use it in Character.cs because i get errors when i use that same code :(?
03/17/2010 22:36 Korvacs#2
Code:
if(this.InventoryContains(720028, 1))
This will only work in the character class.
03/17/2010 22:38 xScott#3
Quote:
Originally Posted by MightyMan17 View Post
hello im new and i need the code for this
this is the code in npcdialog:
Code:
if (GC.MyChar.InventoryContains(720028, 1))
So what is the code to use it in Character.cs because i get errors when i use that same code :(?
Im confused, this code checks if you have the item: (720028) and if theres one in your inventory. you want to use it in Character.cs, to check if someones got an item in their inventory, whilst coding an item in or...?
03/18/2010 21:42 -NewDawn-#4
Hi Decker.
"Where in the world is Decker" <-- lol

Anyways, to answer your question, look for common codes in the source. Have you studied the source yet ... or read it at all?
03/18/2010 21:45 walmartboi#5
Quote:
Originally Posted by -NewDawn- View Post
Hi Decker.
"Where in the world is Decker" <-- lol

Anyways, to answer your question, look for common codes in the source. Have you studied the source yet ... or read it at all?
I think this is decker's cousin?
03/18/2010 21:48 Arcо#6
Quote:
Originally Posted by walmartboi View Post
I think this is decker's cousin?
No its not.
Its decker.
03/18/2010 22:16 -NewDawn-#7
Quote:
Originally Posted by .Arco View Post
No its not.
Its decker.
lol! right on the nail!
kk, well I'll leave him to you bro.

@Decker: read your source dude. It'll answer sooo many of your questions that it's not even funny.
03/18/2010 22:46 .Beatz#8
[Only registered and activated users can see links. Click Here To Register...]

Use my guide might help you with making your NPCs
03/18/2010 23:04 MightyMan17#9
guys me not decker
03/18/2010 23:26 walmartboi#10
Quote:
Originally Posted by Korvacs View Post
Code:
if(this.InventoryContains(720028, 1))
This will only work in the character class.
In your moderator control panel, when you ban someone, is there a drop down box with an actual selection for reason called "Decker"? ;)