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 06-30-2016, 12:00 PM
MysticalDragon MysticalDragon is offline
Global Administration
MysticalDragon's Avatar
Join Date: Oct 2002
Location: Lynn Ma
Posts: 883
MysticalDragon is a jewel in the roughMysticalDragon is a jewel in the rough
Send a message via AIM to MysticalDragon Send a message via MSN to MysticalDragon
Quote:
Originally Posted by Gunderak View Post
Hmm I'm out of ideas then... Also hey, I remember you from when I was on Era PC ha

PHP Code:
temp.fold = new[15000]; 
Was my attempt when I thought maybe the default array size was 10k.
Default (Not sure if you can even change the max limitations) size is 9999.

PHP Code:
function onCreated() {
  
temp.fold = new[15000];  
  
temp.fold[9999] = {"test"};  
  echo(
temp.fold[9999]);  
}
The script of NPC Cache has been updated by Carlito
test

Echoes Test while

PHP Code:
function onCreated() {
  
temp.fold = new[15000];  
  
temp.fold[10000] = {"test"};  
  echo(
temp.fold[10000]);  
}
The script of NPC Cache has been updated by Carlito 
echoes nothing.

I also noticed the method in which you are using to get the players account. What if they don't have a player house? How I would personally do it without loading the accounts folder directly is every player that logs into the game register them in SQL.
__________________
~Delteria Support
~Playerworld Support
~PWA Chief
http://support.toonslab.com
[email protected]




Last edited by MysticalDragon; 06-30-2016 at 12:11 PM..
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 06:11 AM.


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