Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-29-2009, 03:12 PM
Schetti Schetti is offline
SC2 Player
Schetti's Avatar
Join Date: Nov 2008
Location: Austria
Posts: 269
Schetti is on a distinguished road
toinventory

well its me again.
I read toinventory/followplayer doesnt work anymore.
Can someone tell me, another script instead of those? Esecially Toinventory.
__________________
“Peace cannot be kept by force. It can only be achieved by understanding.” – Albert Einstein
Reply With Quote
  #2  
Old 01-29-2009, 03:17 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
I can't even remember what toinventory whas supposed to do...
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #3  
Old 01-29-2009, 03:24 PM
Soala Soala is offline
Ideas on Fire
Soala's Avatar
Join Date: Jun 2007
Location: In my head
Posts: 3,208
Soala is a jewel in the roughSoala is a jewel in the rough
followplayer always worked offline for me, but not online

could it be like in ganis....attachtoowner?
Reply With Quote
  #4  
Old 01-29-2009, 03:34 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
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 View Post
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 View Post
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");
__________________
Follow my work on social media post-Graal:Updated august 2025.

Last edited by xXziroXx; 01-29-2009 at 08:42 PM..
Reply With Quote
  #5  
Old 01-29-2009, 03:41 PM
Soala Soala is offline
Ideas on Fire
Soala's Avatar
Join Date: Jun 2007
Location: In my head
Posts: 3,208
Soala is a jewel in the roughSoala is a jewel in the rough
Quote:
Originally Posted by xXziroXx View Post
Both commands have been deleted since they're outdated and no supported.
Okay, but how come attachtoowner still works in my ganis ?
Reply With Quote
  #6  
Old 01-29-2009, 06:59 PM
[email protected] sid.gottlieb@googlemail.com is offline
Banned
Join Date: Mar 2008
Posts: 861
sid.gottlieb@googlemail.com will become famous soon enough
toinventory just showed the icon in the top left hand corner of the screen- nothing fancy
Reply With Quote
  #7  
Old 01-29-2009, 07:12 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by alexandralove View Post
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.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #8  
Old 01-30-2009, 05:19 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by [email protected] View Post
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.
__________________
Reply With Quote
  #9  
Old 01-30-2009, 05:26 AM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
Quote:
Originally Posted by cbk1994 View Post
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.
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote
  #10  
Old 01-30-2009, 08:49 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Tigairius View Post
'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.
__________________
Reply With Quote
  #11  
Old 01-30-2009, 06:46 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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
Reply With Quote
  #12  
Old 02-07-2009, 01:21 PM
Schetti Schetti is offline
SC2 Player
Schetti's Avatar
Join Date: Nov 2008
Location: Austria
Posts: 269
Schetti is on a distinguished road
Quote:
Originally Posted by xXziroXx View Post
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 View Post
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?
__________________
“Peace cannot be kept by force. It can only be achieved by understanding.” – Albert Einstein
Reply With Quote
  #13  
Old 02-07-2009, 08:10 PM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
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"); 
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote
  #14  
Old 02-08-2009, 08:39 AM
Schetti Schetti is offline
SC2 Player
Schetti's Avatar
Join Date: Nov 2008
Location: Austria
Posts: 269
Schetti is on a distinguished road

this helped a lot.
I first thought, you have to add player.addWeapon("weapon name");
in players attributes or script
THANKS TO ALL
__________________
“Peace cannot be kept by force. It can only be achieved by understanding.” – Albert Einstein
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 10:39 PM.


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