Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   toinventory (https://forums.graalonline.com/forums/showthread.php?t=83932)

Schetti 01-29-2009 03:12 PM

toinventory
 
well its me again.
I read toinventory/followplayer doesnt work anymore.
Can someone tell me, another script instead of those? Esecially Toinventory.

xXziroXx 01-29-2009 03:17 PM

I can't even remember what toinventory whas supposed to do... :oo:

Soala 01-29-2009 03:24 PM

followplayer always worked offline for me, but not online

could it be like in ganis....attachtoowner?

xXziroXx 01-29-2009 03:34 PM

I remember now. Toinventory added the current NPC to the players inventory as a Weapon NPC.

EDIT: Neeevermind, that's toweapons.

Quote:

Originally Posted by alexandralove (Post 1461049)
followplayer always worked offline for me, but not online

could it be like in ganis....attachtoowner?

Both commands have been deleted since they're outdated and no supported.

Quote:

Originally Posted by Schetti (Post 1461044)
Can someone tell me, another script instead of those? Esecially Toinventory.

Add the script to a Weapon NPC and add it to a player object using addWeapon("Name/Of/Weapon");

Soala 01-29-2009 03:41 PM

Quote:

Originally Posted by xXziroXx (Post 1461051)
Both commands have been deleted since they're outdated and no supported.

Okay, but how come attachtoowner still works in my ganis ?

[email protected] 01-29-2009 06:59 PM

toinventory just showed the icon in the top left hand corner of the screen- nothing fancy

xXziroXx 01-29-2009 07:12 PM

Quote:

Originally Posted by alexandralove (Post 1461054)
Okay, but how come attachtoowner still works in my ganis ?

Because attachtoowner is a completely different thing. It keeps an image fixed at the players location, while followplayer made a NPC walk behind the player ala A Link to the Past style.

cbk1994 01-30-2009 05:19 AM

Quote:

Originally Posted by [email protected] (Post 1461117)
toinventory just showed the icon in the top left hand corner of the screen- nothing fancy

It was the same as toweapons. It was used before NC to add weapons via level scripts.

Tigairius 01-30-2009 05:26 AM

Quote:

Originally Posted by cbk1994 (Post 1461248)
It was the same as toweapons. It was used before NC to add weapons via level scripts.

'Toweapons' isn't the same as 'toinventory'. 'Toweapons' created a weapon in your Q-menu, 'toinventory' added a little icon to your "inventory" to the left side of the screen.

Neither of these commands are available anymore though.

cbk1994 01-30-2009 08:49 AM

Quote:

Originally Posted by Tigairius (Post 1461251)
'Toweapons' isn't the same as 'toinventory'. 'Toweapons' created a weapon in your Q-menu, 'toinventory' added a little icon to your "inventory" to the left side of the screen.

Neither of these commands are available anymore though.

Ah, my bad.

Admins 01-30-2009 06:46 PM

Toinventory was only used until 99 I think, it was adding the image of the npc to the left side of the screen, and was deleted once the provided flag was unset

Schetti 02-07-2009 01:21 PM

Quote:

Originally Posted by xXziroXx (Post 1461051)
Add the script to a Weapon NPC and add it to a player object using addWeapon("Name/Of/Weapon");

Isnt there another way?

Quote:

Originally Posted by Stefan (Post 1461322)
Toinventory was only used until 99 I think, it was adding the image of the npc to the left side of the screen, and was deleted once the provided flag was unset

what you use now?
only addWeapon?

Tigairius 02-07-2009 08:10 PM

Yes, add your weapon script that would normally be done with toweapons to a weapon script in NPC-Control.

For information on NPC-Control refer here, best viewed in high quality on the acutal youtube page (from the Testbed Server):


After that you can use
PHP Code:

player.addWeapon("weapon name"); 


Schetti 02-08-2009 08:39 AM

^^
this helped a lot.
I first thought, you have to add player.addWeapon("weapon name");
in players attributes or script
THANKS TO ALL


All times are GMT +2. The time now is 11:35 PM.

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