• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

SweetScape 010 Scripts not working

Newbie Spellweaver
Joined
Aug 16, 2012
Messages
41
Reaction score
2
Hello,

I'm pulling my hair on this one, everytime I execute scripts on 010 Editor for my dat file, it shows an error.

For example:

I execute this script:

/**
* Intrepid-Web.NET
*
* Source code may not be modified without the direct consent and permission
* of Intrepid-Web.NET.
*
* Copyright Copyright (c) Intrepid-Web.NET. ( )
*/


int del_index, i;
char items_list[], tmp_list[], item_code[];

// Sealed Relics
//items_list = "iwknd03,iwswd02,iwaxd06,iwaxd07,iwmad06,iwmad07,iwspd06,iwbod03,iwbod06,iwfid11,iwfid13,iwfid16,iwfid17,iwaxv06,";
// Unsealed Relics
items_list = "iwstd06,";
// Elemental Sword
//items_list = "iwswd45,";

tmp_list = items_list;
while(Strstr(tmp_list, ",") > -1)
{
// Get the first commans position
del_index = Strstr(tmp_list, ",");

// Get the first in line: item code
item_code = SubStr(tmp_list, 0, del_index);

// Get rid of the item code and comma from the list
tmp_list = SubStr(tmp_list, del_index+1, 0);

// Run through the list of items
for(i=0; i<file.header.blocks; i++)
{
// 22
if(file.weapon.Code == item_code)
{
// Level Requirements
file.weapon.EquipLevel = 60;

// Display message of adding item
Printf("%d,", file.weapon.Index);
}
}

}
on my WeaponItem.dat , but then this error:

Executing script 'C:\010Editor64Bit\010 Scripts\weapon_item\[server]weaponitem-get-relic-list.1sc' on 'C:\ZoneServer\Script\WeaponItem.dat'...

*ERROR Line 34: Variable 'file' is undefined.



What I have tried:

1. Searching through other forum and google, here is only source I get:

http://forum.ragezone.com/f480/guide-edit-files-excel-using-1015577/

http://forum.ragezone.com/f480/guide-using-010-editor-941428/

and no one response on both thread.

2. Make sure template is loaded before executing scripts.



Please help me on this one.

Best regards,

blackfritz
 
Back
Top