Thread: Graal Shop Pro
View Single Post
  #6  
Old 08-07-2014, 04:54 AM
scriptless scriptless is offline
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
scriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to behold
Sorry for the bump but I noticed when I try and save the gani nothing happens.

I can still set my gani online,restarting the client and it doesn't show anymore, but the file seems to be nowhere. Not online, nor on my computer. Both mac and windows. Any help would be awesome. I would love to be able to edit ganis online, or save them offline and upload them at least using my mac.

Edit:
I managed to change the line that saves the file to call a triggeraction and saved the lines serverside. This allowed me to save the gani online. Which accomplishes what I need. Would be cool if I could get it to save locally tho. But this definitely helps me alot. Thanks FP4.

Here is what I did,

PHP Code:
function onActionServerside() {
  
// save to server maybe
  
if ( params[0] == "savegani" ) {
    echo(
params[2SPC "uploaded or updated!");
    
temp.lines params[1];
    
temp.lines.savelines(params[2], 0);
  }

And editing:

PHP Code:
  // Save File
  
temp.lines.savelines(this.filename0); 
to the following, using ASDFG so I could ctr+f to it since its on like line 3,700 something.

PHP Code:
  // Save File
  // ASDFG
  
triggerserver("gui"this.name"savegani"temp.linesthis.filename);
  
//temp.lines.savelines(this.filename, 0); 
I also noticed the NPC Server needed rights to the file.

Last edited by scriptless; 08-07-2014 at 05:53 AM..
Reply With Quote