Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   toinvatory help; (https://forums.graalonline.com/forums/showthread.php?t=16666)

jonny12 11-12-2001 04:28 AM

toinvatory help;
 
if you put somthing in your invantory--can you deleat it?

if(playertouchsme&&playerhaveinvantory(this))
{uninvantry this}

somthing like that

Brad_Elven 11-12-2001 04:30 AM

there is not a ininventory or anything but i think whatever is in ur Inventory interacts with Flags...

royce 11-12-2001 05:38 AM

theres toweapons and playerhasweapon

royce 11-12-2001 05:38 AM

so just destroy afterwards.

nyghtGT 11-12-2001 06:41 AM

Quote:

Originally posted by royce
theres toweapons and playerhasweapon
there is the command 'toinventory flag' command and then to unset it i beleive you just use 'unset flag'

LiquidIce00 11-12-2001 06:46 AM

you would do
if (playertouchsme) { toinventory yourkey; }
then to check you would just do
if (yourkey) { whatever; }
like in a door you would put
if (playertouchsme&&yourkey) {
hidelocal;
unset yourkey;
}
and the key of course
if (playertouchsme&&!yourkey) { toinventory yourkey; }

nyghtGT 11-12-2001 06:49 AM

Quote:

Originally posted by LiquidIce00
you would do
if (playertouchsme) { toinventory yourkey; }
then to check you would just do
if (yourkey) { whatever; }
like in a door you would put
if (playertouchsme&&yourkey) {
hidelocal;
unset yourkey;
}
and the key of course
if (playertouchsme&&!yourkey) { toinventory yourkey; }

basically what i said ....

Aknts 11-12-2001 07:01 AM

I have never used toinventoy there is no use.

nyghtGT 11-12-2001 07:06 AM

exactly ... it pretty much does the same thing as 'set flag'

TDO2000 11-12-2001 11:52 PM

But u have this small picture of the NPC in the left top corner. I think Stefan invented it for something like keys or things u have to bring to other NPCs to make Quests look nicer...

Xaviar 11-12-2001 11:53 PM

Quote:

Originally posted by nyghtGT
exactly ... it pretty much does the same thing as 'set flag'
Except it adds an image to the "inventory" section of the stats, so the player knows that he's got an "inventory" item

TDO2000 11-13-2001 12:01 AM

Quote:

Originally posted by Xaviar


Except it adds an image to the "inventory" section of the stats, so the player knows that he's got an "inventory" item

That's what I said ;)
Okok in my personell "No-One-Else-Will-Undestand-This" Way but I said it ;D

Xaviar 11-13-2001 12:11 AM

Quote:

Originally posted by TDO2000

That's what I said ;)
Okok in my personell "No-One-Else-Will-Undestand-This" Way but I said it ;D

Gah..I think we posted at the same time X_X

TDO2000 11-13-2001 12:14 AM

But I was first ;b
um and u need 8 minutes to post?

Xaviar 11-13-2001 08:00 AM

Quote:

Originally posted by TDO2000
But I was first ;b
um and u need 8 minutes to post?

Gimme some slack! I was in school (web design, today we learned about <u> and </u> :rolleyes: ) and the teacher walked by

TDO2000 11-13-2001 08:16 PM

Quote:

Originally posted by Xaviar


Gimme some slack! I was in school (web design, today we learned about <u> and </u> :rolleyes: ) and the teacher walked by

lol our well informed teachers ;D
I always have to fix the delphie-programs of my teacher because his don't want to work ;D


All times are GMT +2. The time now is 02:28 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.