Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Grabbing a dbnpc array (https://forums.graalonline.com/forums/showthread.php?t=134257172)

sssssssssss 12-02-2009 09:23 PM

Grabbing a dbnpc array
 
Ok, I've tried using
PHP Code:

params[1][0

many, many times and its always worked fine, until now.
a dbnpc has values 1,2,3,4,5 and if i put
PHP Code:

params[1][0

it pulls the entire thing on one line. Is there a different way to do this?

sssssssssss 12-02-2009 10:25 PM

Ok, new question, to go along with the old one.

I'm trying to make a npc chat, where an array is stored, either in the level npc, or dbnpc, then shown up in the gui from the wnpc. Ive found this quite difficult to figure out how to do correctly, and there will be different and many npc's you can talk to throughout the server. Any direction on how to start and complete this please?

Switch 12-02-2009 10:28 PM

What info are you pulling?
To do that it's probably best to have a "startChat" or "giveChat" function in a class, join those NPCs, and send the info from the level NPC to the player in a weapon.

sssssssssss 12-02-2009 10:43 PM

xD Tanks.


All times are GMT +2. The time now is 08:34 AM.

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