Need some help..

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.

Moderator: POL Developer

Post Reply
Nixroc
New User
Posts: 16
Joined: Wed May 27, 2009 2:41 am

Need some help..

Post by Nixroc »

I'm wanting to make a gate that leads to an area for new players can go and there is weak monsters for them to kill and train their skills on. But i'm wanting the gate to read their skills and if they have any skill over say 70.1% then they get a system message saying they are to experienced to enter this area, if i make sense of what I'm asking to do..
Tomi
POL Developer
Posts: 478
Joined: Tue Feb 21, 2006 5:08 pm

Re: Need some help..

Post by Tomi »

so actually it seems like you want to create somekind of newbie dugeon.

- for the gate and moving with it ( check teleporter or moongate scripts from some ready scriptbase )
and in the gate you can easily add some check for skills ( just take a look at some skillscript to see how its checked )
- and if you dont know how to send a sysmessage to a player, I ask you to read the docs.


My advice for you is to try make this script, and then if you have problems while creating it you can ask here. This is not to be rude or anything, but script like this is very simple and good practice. And that also the reason why I wont give you the full code for this script, just point you in the correct direction where you can look for answers.
User avatar
Damien White
Journeyman Poster
Posts: 68
Joined: Tue Aug 18, 2009 6:34 pm

Re: Need some help..

Post by Damien White »

Another option might also to be to post an advertisement for scripters to join your shard. Make sure you post in the right forum.
Nixroc
New User
Posts: 16
Joined: Wed May 27, 2009 2:41 am

Re: Need some help..

Post by Nixroc »

Thanks Tomi, i have the basic part of it done, a bit of a noob when it does come to find scripts of where to look or what script i should e.g the Scriptskill you suggested. Tested and the part i have done complies and works, but i think there could be a bug with it 'cause after i compile it a file creates *.dbg

Code: Select all

use uo;
use os;

include "include/client";

program WalkOnScript( who )
 
      MoveCharacterToLocation(who, 5300, 1483,   0, MOVECHAR_FORCELOCATION);

endprogram
Damien.
Journeyman Poster
Posts: 63
Joined: Thu Feb 08, 2007 11:14 am

Re: Need some help..

Post by Damien. »

.dbg files are always created unless you disabled their 'creation-function'.. so .dbg files does not means there is a bug :)
Nixroc
New User
Posts: 16
Joined: Wed May 27, 2009 2:41 am

Re: Need some help..

Post by Nixroc »

ahk, thanxs :)
User avatar
CWO
POL Expert
Posts: 1159
Joined: Sat Feb 04, 2006 5:49 pm

Re: Need some help..

Post by CWO »

Just make sure when doing something like making a gate script from scratch to include some check to make sure if they are being teleported on top of another gate (like the gate back), that they won't be immediately teleported back. The default gate scripts on your shard should have some example of this.
Nixroc
New User
Posts: 16
Joined: Wed May 27, 2009 2:41 am

Re: Need some help..

Post by Nixroc »

Thanxs for the tip CWO i'll keep that in mind ;)
User avatar
*Edwards
Forum Regular
Posts: 303
Joined: Fri Dec 28, 2007 11:19 pm

Re: Need some help..

Post by *Edwards »

You can get exemples of what you are trying to do in the official distro release 097 in pkg/items/moongates . Once you created your gate in-game you also have the chance to setup the coords where you want the player to be teleported.
Post Reply