![]() |
weapons and log-on
When you are logging on, you get all your weapons added, and the script of the weapons is executed imediatly.
My problem is that on Classic we are having such a command in our system NPC: NPC Code: Now this will be executed before the weapon "whatever" was loaded, and so the player will always be warped when logging in. It could be solved by not executing any scripts until all the weapons are loaded. |
Re: weapons and log-on
Couldn't ya just use a timeout?
|
Get an NPC Server, then you can define which weapons must be loaded first. :)
|
Yes, an NPCServer!
Oh wait! There are over 6000 levels to be converted manually! =_= We'd need either a customized NPCServer that can still allow certain aspects to be handled clientside (which Stefan suggested might be possible, though he hasn't even started on it) or a really smart batcher to automatically NPCServerize everything. |
Quote:
|
Quote:
Quote:
Basically it will just check simple events like playerenters and playertouchsme and will move every clientside command (like setbackpal, play, ...) into the clientside part. If it finds any clientside commands it can't convert automatically, it will report the level and the position of the NPC. It would report toweapons, too. Only problem: how can you read .graal files? Ok, not the only problem...I need to convert a lot of flags, too. If I'd just keep the old flags they couldn't be read clientside. I need to add client. or clientr. in front of some flags. I would buld some flag database, where I add every flag and string and tell the levels in which it is used. Then I'd have to see which of them need to be changed. I would notice it, because only those flags need to be changed which are used in NPCs I need to convert manually. (I guess it would be quite a lot). So we'd basically need a second server, to debug everything. We cannot destroy thousands of player accounts. A converter graal to nw would be usefull, too. I'd also rename the levels on the map to main_*.nw to be able to use gmaps. |
Quote:
2.) a converter for graal - nw does exist, you can contact me to get it 3.) gmaps have a feature where you open in wordpad and do LEVELNAMES levels (kindof like map text file formats) LEVELNAMESEND |
Quote:
|
Heey, there's a real .graal to .nw converter? I heard about it a few months ago, then someone said it just changed filenames, then nobody had a copy. If it exists and it does what it should, we're set! Writing batchers for .nw files is a snap!
|
But it wouldnt change level links would it?
|
Quote:
I had it, unfortunately I do not anymore. |
tyhm, I emailed you the converter, well, I hope I got the right email, I just assumed it was [email protected]
|
thought you said you werent to give it out?
:'( |
Shweet, got it, thanks!
|
Due to some strange problems with e-mail, I didn't get the converter now, but Tyhm has to run it anyway.
I started writing my script converter. I guess that the NPC Server is still unable to load images and I have to add setshape in front of every NPC? I wrote it so it looks for every image in your graal folder and its subdirectories, and it loads the dimensions of it. It does not support gif files, but we only use pngs and mngs on Classic, so that shouldn't be a problem. I already wrote the setshape part. It does not support setimgpart or setimg, it is using the image assigned to the NPC. I hope I won't have to do setshape for showcharacter NPCs. We'd have to search all the levels for setimgpart and edit those...I hope that is not too much. Let's hope I'll finish the rest soon. |
Sorry for the double-post....
Quote:
|
Quote:
Quote:
|
Quote:
It does the following: NPC Code: |
| All times are GMT +2. The time now is 02:43 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.