Search found 343 matches

by Harley
Thu May 16, 2019 4:24 pm
Forum: Scripting Help
Topic: How to prevent using commands/words?
Replies: 11
Views: 295

Re: How to prevent using commands/words?

Thank you guys! It works! :deadhorse:
by Harley
Sat May 11, 2019 2:09 pm
Forum: Scripting Help
Topic: How to prevent using commands/words?
Replies: 11
Views: 295

Re: How to prevent using commands/words?

Thank you guys!
I use this hook also and log all commands from staff after ".".
But at final, I dont understand how to prevent chars msgs after they press Enter?)
Maybe someone of you can show an example or share some code?

With best regards!
by Harley
Fri May 10, 2019 1:48 pm
Forum: Scripting Help
Topic: How to prevent using commands/words?
Replies: 11
Views: 295

Re: How to prevent using commands/words?

All commands must be prefixed with a period. Also, commands have a hierarchy so that players cannot use a command that is intended for staff. In the Distro in /pkg /commands you will find the folders that contain the commands sorted according to the command level that can use them. Yukiko, my frien...
by Harley
Fri May 10, 2019 4:57 am
Forum: Scripting Help
Topic: How to prevent using commands/words?
Replies: 11
Views: 295

How to prevent using commands/words?

Is there some function or method, how to prevent use commands or some words?

Example: player type word, if this word in my database, server have to prevent and block it, before it will send
by Harley
Mon Apr 22, 2019 11:42 am
Forum: Scripting Help
Topic: How to: convert array into string?
Replies: 6
Views: 151

Re: How to: convert array into string?

", ".join(myarray) Will do the trick Geniously!!! Thank you, Turley ! Yukiko , yeap! There is also the same function with foreach: /* * ImplodeArray(glue, array) * * Purpose * Returns a string containing the array elements in the same order with * the 'glue' string in between each array element. * ...
by Harley
Mon Apr 22, 2019 6:02 am
Forum: Scripting Help
Topic: How to: convert array into string?
Replies: 6
Views: 151

Re: How to: convert array into string?

DevGIB, thanks for your answer, but you are not fully right. CStr() doesn't convert array into string. It will be also array with { }. For example, in PHP, there is a function implode( string $glue , array $pieces ) which convert all objects in array to str format with delimiter ($glue). In our scri...
by Harley
Sun Apr 21, 2019 1:47 pm
Forum: Scripting Help
Topic: How to: convert array into string?
Replies: 6
Views: 151

How to: convert array into string?

Subj! I didn't found any examples here: https://docs.polserver.com/pol100/guides.php?guidefile=escriptguide Didn't find any function here: https://docs.polserver.com/pol100/ And need your help! I have an array of 2-3 indexes. And I have to convert this array into string and than assign to variable. ...
by Harley
Mon Apr 01, 2019 2:19 am
Forum: Bug Reports & Feature Requests
Topic: Datafile.em and functions
Replies: 4
Views: 228

Re: Datafile.em and functions

the datafile can be created without a reference to a package. What he does not allow is you refer to a package that does not exist. :test:namefile if you want to create the file without package, this is not a problem, when referencing the name do not use ":pkg: when the server saves, the datafile f...
by Harley
Sun Mar 31, 2019 2:42 pm
Forum: Bug Reports & Feature Requests
Topic: Datafile.em and functions
Replies: 4
Views: 228

Datafile.em and functions

print( "Hello world!;-)" ); // GREETINGS I don't know if someone has encountered this problem at POL100, but I had! When I want to create new data file at data store, I can't do it and have an error, instead of if I have data file exists. I use distro functions from datafile.inc DFOpenDataFile() /*...
by Harley
Thu Mar 21, 2019 5:13 pm
Forum: Scripting Help
Topic: Unable to find module at runtime.
Replies: 8
Views: 1254

Re:

I think the error message that POL issues could have been clearer. Perhaps something like '<scriptname> is using npc.em but it isn't an AI script!!!' I support you, Yukiko, more detail information will not be superfluous! I have come across not in the first time with this problem, and POL 099 didn'...
by Harley
Sun Mar 17, 2019 5:20 pm
Forum: Current development (100)
Topic: [const] Directory
Replies: 7
Views: 281

Re: [const] Directory

Ah. Now I understand. You want to use a string constant as part of the include statement. This is interesting but I am not sure it is possible currently because of the way eCompile works. Yep! Thank you for retranslate my thoughts. Its some difficult to find needed words at 03:00 AM )) I think this...
by Harley
Sun Mar 17, 2019 3:47 am
Forum: Current development (100)
Topic: [const] Directory
Replies: 7
Views: 281

Re: [const] Directory

If this is a feature request I do not understand. You can define a constant like that in your scripts. Maybe I am missing something. Yukiko, yesterday I tried to make one include which contain all info for my server directories. And when I compiled script, I got error! I maked inc with them, for ex...
by Harley
Sat Mar 16, 2019 5:28 pm
Forum: Current development (100)
Topic: [const] Directory
Replies: 7
Views: 281

[const] Directory

Hi everybody! I guess my ideas will be very usefull and helpfull for all of us! I don't know, if someone make this offer yet, but as you saw in my subject, I propose to make possible to add in const directory path to include/cfg/ and etc. For example, something like that: const WWW_DIR_INC := ":www:...
by Harley
Fri Mar 15, 2019 4:28 pm
Forum: Scripting Help
Topic: [MySQL] How to send some info from MySQL to POL
Replies: 7
Views: 602

Re: [MySQL] How to send some info from MySQL to POL

Okay, guys! I see that you don't want to make some changes for us in MySQL functions, but there is a SOS situation!
Why POL writes me Minidumps? I don't know, but I hope that you will find some desicion.
Here is some new)
20190316022330-0.dmp
(101.95 KiB) Downloaded 9 times
With best regards and hope for a bright future)
by Harley
Sun Mar 10, 2019 3:25 pm
Forum: Scripting Help
Topic: [MySQL] How to send some info from MySQL to POL
Replies: 7
Views: 602

Re: [MySQL] How to send some info from MySQL to POL

Turley , thank you for your answer. Of course, my request wasn't full and informative. After some days, I guessed that POL can't display full array of MySQL result, and its a pity! But I found some bugs with this functions and want to share them! This is how my code works: 1st step I connect to DB ...
by Harley
Tue Mar 05, 2019 5:40 pm
Forum: Complete Worlds
Topic: olduo.com
Replies: 5
Views: 409

Re: olduo.com

atreiu, thank you very much for your work!
It is a big experience for all of our community to see, how you realized your genius ideas!
There is a question. I didn't found any includes. Is it a mistake or did you plan so?

Whatever it was, thank you very much!
With best regards!
by Harley
Mon Mar 04, 2019 3:43 pm
Forum: Scripting Help
Topic: [MySQL] How to send some info from MySQL to POL
Replies: 7
Views: 602

Re: [MySQL] How to send some info from MySQL to POL

Hello guys! I tested this function mysql_fetch_row(result) And like in docs said, that: Return values Array on success This is my result: syslog [pkg/player/login/checkPT/mysql/MySQL_CNC.ecl]: [MySQL] Connection Successful! MySQL_CNC() | connection : SQLConnection syslog [pkg/player/login/checkPT/my...
by Harley
Fri Feb 22, 2019 3:17 pm
Forum: Scripting Help
Topic: Quests
Replies: 11
Views: 499

Re: Quests

Hi, I have a quest system in my roleplay shard. The thing is that it is much dependent on my shard system. I can share with you in private, it can help you to have something to start with. If you prefer to wait, I'm adapting the system to another system. I will have something more generic to use wi...
by Harley
Sun Feb 03, 2019 4:28 pm
Forum: Scripting Help
Topic: [MySQL] How to send some info from MySQL to POL
Replies: 7
Views: 602

Re: [MySQL] How to send some info from MySQL to POL

Skinny, thank you for an example! Will test very soon!
by Harley
Thu Jan 31, 2019 5:44 pm
Forum: Scripting Help
Topic: [MySQL] How to send some info from MySQL to POL
Replies: 7
Views: 602

[MySQL] How to send some info from MySQL to POL

Hi guys! For the reason that answers to my questions still remain, I want to know, how POL can get specific information from MySQL request? Cause all that I got is only from this code: query:="SELECT card FROM gamecards "+ card +""; print( " InMySQL() | query 1 : " + query ); // DEBUG query:= mysql_...
by Harley
Thu Jan 24, 2019 5:04 am
Forum: Scripting Help
Topic: Quests
Replies: 11
Views: 499

Re: Quests

Hi, I have a quest system in my roleplay shard. The thing is that it is much dependent on my shard system. I can share with you in private, it can help you to have something to start with. If you prefer to wait, I'm adapting the system to another system. I will have something more generic to use wi...
by Harley
Mon Jan 21, 2019 9:39 am
Forum: Scripting Help
Topic: Buff Icon Window
Replies: 35
Views: 4843

Re: Buff Icon Window

Turley wrote:
Mon Jan 21, 2019 8:40 am
Before someone adds these packets via escript:
char.addBuff() char.clearBuffs(), char.delBuff() should do the trick ;)
Is this tricks works with POL099 or beggining with POL100?
by Harley
Sun Jan 20, 2019 4:13 pm
Forum: Contributed Scripts & Packages
Topic: Discord Bot with Server and Client communication
Replies: 3
Views: 250

Re: Discord Bot with Server and Client communication

Wow!
Duttones, really great work!
by Harley
Sat Jan 19, 2019 5:29 pm
Forum: Scripting Help
Topic: Quests
Replies: 11
Views: 499

Quests

Hello everyone! I search for a script-package with full or not very fully loaded quest scripts with quests something like: Mine 5 ore, Bring 10 logs, Kill 25 rats and etc. If every one have, I'll be very grateful. If someone have mega-great system, we can talk about rewarding for your work. Especial...
by Harley
Sat Jan 19, 2019 12:04 pm
Forum: Scripting Help
Topic: Buff Icon Window
Replies: 35
Views: 4843

Re: Buff Icon Window

If someone need help for this topic, read this one.
viewtopic.php?t=1236