Zulu Hotel Shard Project POL099

Scripts for an entire shard, alternatives to the distro made by other users

Moderator: POL Developer

Yukiko
Distro Developer
Posts: 2391
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: Zulu Hotel Shard Project POL099

Post by Yukiko » Thu Jul 26, 2012 4:01 am

Oliver wrote:Edwards can you update the shard script? :)
This set of scripts are now the official POL Distro. You can get the latest version by using the instructions posted here.
Sincerely,
Yukiko

I would tell you a UDP joke but you might not get it.

Titus 2:13

Mutley
New User
Posts: 29
Joined: Tue Sep 03, 2013 8:26 am
Location: BRAZIL

Re: Zulu Hotel Shard Project POL099

Post by Mutley » Tue Sep 03, 2013 8:25 pm

Compiled Distro FS for Pol099 by StartHere.bat


Compilation Summary:
Compiled 1236 scripts in 105144 ms.
2 of those scripts had errors.



ERROR 1

Compiling: C:/Mutley WarShard/Pol/pkg/commands/admin/test.src
Don't know what to do with 'Unknown Token: (275,8,'to')' in SmartParser::parseToken
File: C:\Mutley WarShard\Pol\pkg\commands\admin\test.src, Line 32
Error compiling statement at C:\Mutley WarShard\Pol\pkg\commands\admin\test.src, Line 32
Error detected in program body.
Error occurred at C:\Mutley WarShard\Pol\pkg\commands\admin\test.src, Line 32

========================================
\test.src
========================================

/*
Created by *Edwards
For FantasiaShard.com

Edwards@FantasiaShard.com

2010-05-18
*/
use uo;
use os;
use polsys;

program textcommand_summonSerial( mobile )

//time stamp: POLCore().systime
//format string: %M-%D-%Y %L:%M:%S %P
//time: StrFormatTime( format_string, CInt( time_stamp )) --> 04-24-2011 10:50:11 PM

//we have to know hour. PM or AM.

//year
//month
//day

//hour
//minute
//second
//pm or am

var time_stamp := POLCore().systime; //temps du server...

need to parse strformattime.... <---------------------------------------------------# Line 32 is here #

if( %M == month )

elseif( %d == day )

elseif( %y == year )

elseif( %l == hour )

elseif( %m > minute && %m < minute+1 )

elseif( %p == day )

endif



return 1;
endprogram



========================================
========================================




ERROR 2

Compiling: C:/Mutley WarShard/Pol/pkg/systems/remoteScripts/commands/dev/restartRemoteScripts.src
Token '(' cannot follow token 'Remote_GetProcess'
Function Remote_GetProcess() is not defined.
Error compiling statement at C:\Mutley WarShard\Pol\pkg\systems\remoteScripts\commands\dev\restartRemoteScripts.src, Line 18
Error detected in program body.
Error occurred at C:\Mutley WarShard\Pol\pkg\systems\remoteScripts\commands\dev\restartRemoteScripts.src, Line 18

========================================
\restartRemoteScripts.src
========================================

/*
Created by *Edwards

2011-06-26
*/
use uo;

include "include/security";
include ":remoteScripts:settings";

program textcmd_disconnectBot( mobile )

if( !AuthorizationCode( mobile ))
SendSysMessage( mobile, "Cancelled." );
return 0;
endif

var kill_bots := Remote_GetProcess().Kill(); <------------------------------------------------------# Line 18 is here #
if( kill_bots.errortext )
SendSysMessage( mobile, "Error couldn't kill bots -->"+kill_bots.errortext );
return 0;
endif

var script := Start_Script( ":remoteScripts:remoteScriptsControl" );
if( script.errortext )
SendSysMessage( mobile, "Error starting script <:remoteScripts:remoteScriptsControl> -->"+script.errortext );
return 0;
endif

SendSysMessage( mobile, "Done!" );

return 1;
endprogram

==========================================
==========================================

I'll be very grateful if you can help me

Big Hug,

Mutley

Yukiko
Distro Developer
Posts: 2391
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: Zulu Hotel Shard Project POL099

Post by Yukiko » Wed Sep 04, 2013 4:14 am

First thing to do is make sure you have the latest "Distro" from the SVN. I say this because my version of test.src doesn't match the one you posted.


At any rate it looks like in the first example you need to add two slashes "//" at the beginning of the error line because that line appears to be a comment.

For the second error open up \pol\pkg\systems\remoteScripts\include\settings.inc and make sure there is a function defined in that file by the name Remote_GetProcess. If there is no function then I would suggest you make sure you have the latest version from the "Distro" SVN because that function is in the SVN version.
Sincerely,
Yukiko

I would tell you a UDP joke but you might not get it.

Titus 2:13

Mutley
New User
Posts: 29
Joined: Tue Sep 03, 2013 8:26 am
Location: BRAZIL

Re: Zulu Hotel Shard Project POL099

Post by Mutley » Wed Sep 04, 2013 5:08 pm

The distro I compiled is Fantasia Shard. by Edwards.

But I will try your alternatives. Thank you.

Mutley

Yukiko
Distro Developer
Posts: 2391
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: Zulu Hotel Shard Project POL099

Post by Yukiko » Fri Sep 06, 2013 1:24 pm

Well, Edwards donated the Fantasia shard to POL to be used as the "Distro". So if you download the "Distro" then you should have a working version of Fantasia but be sure to get it from the "Distro" SVN and not from the ZIP file available in the downloads area.
Sincerely,
Yukiko

I would tell you a UDP joke but you might not get it.

Titus 2:13

Mutley
New User
Posts: 29
Joined: Tue Sep 03, 2013 8:26 am
Location: BRAZIL

Re: Zulu Hotel Shard Project POL099

Post by Mutley » Mon Sep 09, 2013 2:29 pm

Where do I download the SVN distro?

I downloaded through tortoiseSVN ... But downloaded over 800MB with several folders and files with strange extensions:.cpp .h .Lst .Vcxproj etc ... is that right?

Do not know what to do. Thanks for the help.

Mutley

Yukiko
Distro Developer
Posts: 2391
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: Zulu Hotel Shard Project POL099

Post by Yukiko » Tue Sep 10, 2013 4:13 am

You can find the link for downloading the "Distro" here. What you downloaded was the POL Core source code.
Sincerely,
Yukiko

I would tell you a UDP joke but you might not get it.

Titus 2:13

Mutley
New User
Posts: 29
Joined: Tue Sep 03, 2013 8:26 am
Location: BRAZIL

Re: Zulu Hotel Shard Project POL099

Post by Mutley » Tue Sep 10, 2013 5:42 pm

Thank you Yukiko.

Now I'm doing the right thing ;)

Mutley

Mutley
New User
Posts: 29
Joined: Tue Sep 03, 2013 8:26 am
Location: BRAZIL

Re: Zulu Hotel Shard Project POL099

Post by Mutley » Sat Sep 28, 2013 2:13 pm

Hello, could someone help me with the colors of the trees and the color of the messages?

I'm using windows Pol core 099 + distro 099 SVN + Scripts Fantasy Shard.

What do I need to do to adjust the colors?

Image

Tank You!!!

Mutley

Yukiko
Distro Developer
Posts: 2391
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: Zulu Hotel Shard Project POL099

Post by Yukiko » Sun Sep 29, 2013 5:10 am

Tree colours are pretty much preset in the client. You can try changing the season. The command used to be .setseason <season name>
Valid season names are: summer,fall, winter, spring, desolation

Messages sent by the scripts are usually controlled by the color parameter in the various function calls, ie. SendSysMessage, Broadcast, etc. You'll have to search through the scripts for the specific messages that are in the offending colour. Then change the color parameter to something you like. I refer you to the POL Docs section for more info. Look in the UO.EM module docs for info.

Last thing: If the colours of trees or world items are black or just look "wrong", check to make sure you are using the right hues.mul file for the scripts. Some shards use a modified hues.mul file and that will cause colours to be out of whack. Since the official "Distro" is the old Fantasia shard it might be possible that Edwards was using a custom hues file.
Sincerely,
Yukiko

I would tell you a UDP joke but you might not get it.

Titus 2:13

Mutley
New User
Posts: 29
Joined: Tue Sep 03, 2013 8:26 am
Location: BRAZIL

Re: Zulu Hotel Shard Project POL099

Post by Mutley » Thu Oct 24, 2013 9:54 am

Everything perfect now, thanks.

Joey
New User
Posts: 19
Joined: Sun Jan 03, 2010 9:07 pm

Re: Zulu Hotel Shard Project POL099

Post by Joey » Wed Aug 13, 2014 4:05 pm

any one have worked the brain ai. i found a pretty hardcore bug with those file. and i wonder if some one already found it and fixed it.

User avatar
Austin
Former Developer
Posts: 612
Joined: Wed Jan 25, 2006 2:30 am
Contact:

Re: Zulu Hotel Shard Project POL099

Post by Austin » Fri Aug 15, 2014 5:20 pm

Im the creator and maintainer of the brain AI.
You can find the latest version here: http://forums.mytharriauo.com/viewtopic.php?f=9&t=154
-Austin

stalkersol
New User
Posts: 2
Joined: Mon Aug 25, 2014 2:46 pm

Re: Zulu Hotel Shard Project POL099

Post by stalkersol » Sat Aug 30, 2014 11:17 am

People help, I can't find in the list of the banker.
It isn't present in npcdesc which is in (pkg\systems\merchants\config)

but in AIScripts (pkg\systems\brainAI\config) information on the banker is.
Posdkazhite as it can be corrected.

I tried to bring it in such a way in npcdesc

Code: Select all

NPCTemplate Banker
{
	Name			<random> - the Banker
	Script			:brainAI:brain

	ObjType			0x190
	Color			0
	TrueColor		0
	Gender			0
	AR			25

	RunSpeed		200
	Alignment		good
	Category		Merchants

 	Privs			invul
	Settings		invul

	Strength		150
	Intelligence		150
	Dexterity		150

        Swordsmanship 150
	MaceFighting 150
        Fencing 150
	Blacksmithy 150

	HITS			150
	MANA			150
	STAM			150

	AttackDamage		100d100
	AttackAttribute		Wrestling

	AttackHitSound		312
	AttackMissSound		569
	DeathSound		347
	DamagedSound		346
	IdleSound		1346

        GuardKill	1
        GuardIgnore     1

	AISetting	CycleWait	i3600
	AISetting	HearSpeech	i1
	AISetting	ListenRange	i2
	AISetting	AreaSize	i2

	AIScripts	genericMerchant

	NameTemplate	Human_Male
	EquipTemplate	Villager_1
	MerchantType	banker
        Wealth          Middle
}
it in game appears, but as the dealer. without reacting to the bank , but answers the buy
tell that I do not correctly
I will be very grateful for the help!!!!!!!

stalkersol
New User
Posts: 2
Joined: Mon Aug 25, 2014 2:46 pm

Re: Zulu Hotel Shard Project POL099

Post by stalkersol » Sat Aug 30, 2014 1:18 pm

the question not is actual. The answer is found

Post Reply