View Single Post
  #12  
Old 06-07-2010, 03:08 AM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
PHP Code:
function onCreated() {
  
this.db findnpc("DB_Auction");
}
function 
onActionServerSide() {
  if (
params[0] == "getItemsCat") {
    
temp.listz this.db.getCategoryListing(params[1]);
    echo(
temp.listz);
    
triggerClient("weapon"this.name"setList"this.db.getCategoryListing(params[1]), params[1]);
  }
}
//#CLIENTSIDE
function onActionClientSide() {
  if (
params[0] == "setList") {
    
player.chat params[2];
  }

temp.listz never echoes on the serverside, and player.chat doesnt say anything on the clientside. This is what is in the npc.

PHP Code:
public function getCategoryListing(temp.category){ 
  
clearemptyvars(); 
  
temp.list = {}; 
  for (
temp.acntthis.item.(@temp.category).getdynamicvarnames() ){ 
    for (
temp.itemthis.item.(@temp.category).(@temp.acnt).getdynamicvarnames() ){ 
      
temp.this.item.(@temp.category).(@temp.acnt).(@temp.item); 
      
temp.list.add({ temp.itemtemp.v[0], temp.acnttemp.v[3] }); 
    } 
  } 
  return 
temp.list; 

this is the flags in the npc:
PHP Code:
this.item.Weapons.sssssssssss.Sword={sword2.png,0,0,0}
Weapons.sssssssssss.Sword={sword2.png,0,0,0
(also tried just this.Weapons.sssssss.......)

Its not doing anything :/ this.db is to the correct db name too.
__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...


Reply With Quote