Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

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