View Full Version : Problem editing AI.OBJ
Anubisan
22.07.2005, 09:51
Okay...
I have been trying to edit the AI.OBJ file to edit the inventory an existing merchant has in order to move her to a different location and give her different items to sell. We hope to sell quest items through this NPC so that our players are not forced to finish the quests for their second class change.
So far, I have edited NPCs and added the quest items to their NPCs in the AI.OBJ file. When I restart the NPC server, NPCs reboot but none of them respond when talked to. I have tried many different sorts of editing on the AI.OBJ file and most seem to be editable to a certain number of people.
If you know why our editing of the AI.OBJ file has failed and would be willing to share, please respond to this post with the answer.
- Anubisan
Aikeleer
22.07.2005, 17:49
Check if you have any typos. Mind that with a merchant every opening tag has a closing tag. i.e. {4985; 10}. A simple typo like {{4983; 10} can cause such an error. ;)
tierpunk
22.07.2005, 23:13
What do the last mean of 2 figures??? {4983; **}
The last 2 figures ar something to do with tax.
(Sorry cant really remember exactly what with tax right now >_<)
Aikeleer
23.07.2005, 01:05
Certain towns have more tax by default than others. That's why stuff in giran can be cheaper than in gludio. :)
tierpunk
23.07.2005, 11:31
Thanks...
Anubisan
24.07.2005, 02:30
Okay... I have tried to follow everyone's suggestions but it still isn't working. I have been trying to add several destinations to our gatekeeper NPC, but every time I make the changes in the ai.obj file, all npcs are unresponsive on reboot. I have tried numerous different editors and have made sure that the format of the file is not changed. Here is one gatekeeper:
class gatekeeper_richlin : teleporter
property_define_begin
telposlist_begin Position
{"Talking Island Village"; -84141; 244623; -3729; 18000; 0 }
{"The Elven Village"; 46951; 51550; -2976; 6400; 0 }
{"The Dark Elven Village"; 9709; 15566; -4500; 6400; 0 }
{"The Town of Gludio"; -12694; 122776; -3114; 2900; 1 }
{"Dion Castle Town"; 15663.7; 142979.1; -2706.6; 1000; 3 }
{"The Town of Giran"; 83458; 148012; -3400; 9400; 3 }
{"Orc Village"; -45158; -112583; -236; 6000; 0 }
{"Dwarven Village"; 115120; -178224; -917; 6000; 0 }
{"The Southern Entrance of the Wastelands"; -16730; 209417; -3691; 2400; 0 }
{"Oren Castle Town"; 82956; 53162; -1470; 4900; 4 }
{"Ivory Tower"; 85343; 16267; -3640; 8200; 4 }
{"Hardin's Private Academy"; 105846; 109762; -3170; 4100; 0 }
{"Aden Castle Town"; 146705; 25840; -2000; 11000; 5 }
{"Cruma Tower Entrance"; 17192; 114178; -3440.6; 1000; 3 }
{"Floran Village"; 17834.5; 170270.9; -3509; 1000; 3 }
{"Hunters Village"; 117110; 76883; -2696.6; 1000; 3 }
telposlist_end
property_define_end
class_end
As far as I know, everything in the above gatekeeper script should be right! Does anyone know what I could be doing wrong??
- Anubisan
Weird...
That seems correct :s
Just edit it in Notepad o_O
Dont need any special programs =/
nooooooooo, dont use notepad for ai :D, try with UltraEdit
I use notepad o_O
Never had any problems yet.
sometimes the notepad lost the unicode, and when u want to open a large file, like a npcdata of 11 mb, notepad open this in 10 secs or more, but with UE in 1 sec ^^.