The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
new skill riding
Author Message
aptillah
Apprentice
*

Posts: 17
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2014
Reputation: 0



Post: #1
new skill riding
hello again .. i try to make new skill riding but i cant.. i hope some person help me or send me abouth this script

example:

0-50 skill only horse
50-60 lama
60-70 forest
70-80 frenzied ostard
80-90 mustang
90-100 nightmare -unicorn

if my skills 45.0 when i ride horse
a certain chance horse drop me.. this is possible ?

skill gain on the horse only.. how i do like this ?
02-20-2014 05:53 PM
Find all posts by this user Like Post Quote this message in a reply
JohnVeritas
Apprentice
*

Posts: 49
Likes Given: 0
Likes Received: 4 in 4 posts
Joined: Feb 2014
Reputation: 2



Post: #2
RE: new skill riding
Check here for make your own skill

You can set riding skill properties under your custom player event with trigger on @mount. With this trigger you can drop player while riding like;

Code:
on=@mount // when player try to mount a ride.
if (<argo.id> == c_horse_tan)
   if (<src.riding_skill> < 500)
      if (<r4> == 1)
      src.dismount
      src.sysmessage At sizi uzerinden atti.
      endif
  endif
endif

If you want to dismount player time by time you can do it with an external item with timer. @timer item check cont.riding_skill and cont.findlayer.25.more1 if more1 is c_llama and <cont.riding> < 600 with a rand cont.dismount that all GRTS
(This post was last modified: 02-20-2014 07:22 PM by JohnVeritas.)
02-20-2014 07:16 PM
Find all posts by this user Like Post Quote this message in a reply
aptillah
Apprentice
*

Posts: 17
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2014
Reputation: 0



Post: #3
RE: new skill riding
[SKILL 54]
DEFNAME=SKILL_RIDING
KEY=Riding
TITLE=Rider
STAT_STR=20
STAT_INT=70
STAT_DEX=30
BONUS_STR=0
BONUS_DEX=0
BONUS_INT=100
BONUS_STATS=50
ADV_RATE=2.5,50.0,200.0

ON=@Success
RETURN 2

ON=@Fail
RETURN 1

i tried to make new skill but i dont see skill name in game but i teach this sckill so problem is skill name in game..

i have 2 question
how i start to skill working when character walking on horse?
how i make dismount charachter %chance abouht riding skill?
(This post was last modified: 02-20-2014 09:01 PM by aptillah.)
02-20-2014 09:00 PM
Find all posts by this user Like Post Quote this message in a reply
JohnVeritas
Apprentice
*

Posts: 49
Likes Given: 0
Likes Received: 4 in 4 posts
Joined: Feb 2014
Reputation: 2



Post: #4
RE: new skill riding
Well you can simply add animals to def with rid_xxx (skill_riding) system works fine for me...

Code:
[DEFNAME RIDING_SYSTEM]
rid_c_llama    500

[SKILL 58]
DEFNAME=SKILL_Raiding
FLAGS=SKF_SCRIPTED
KEY=Riding
TITLE=Raider
PROMPT_MSG=
DELAY=1.0
ADV_RATE=2.5,50.0,200.0
STAT_STR=0
STAT_INT=85
STAT_DEX=0
BONUS_STR=0
BONUS_DEX=0
BONUS_INT=100
BONUS_STATS=25


[events e_raider] // you can also pass this event and add that functions under your custom player event.

on=@mount // player try to mount up
if (<src.riding> < <def.rid_<argo.baseid>>) // if skill is lower than animal got
    if (<r2> == 1) //fail
    timerf 1,src.sysmessage Hayvan sizi uzerinden atti.
    timerf 1,src.dismount
    endif
endif

serv.newitem i_dcsg // skill gainer and distance checker
src.equip <new>


on=@dismount
src.consume 999 i_dcsg

on=@userskills
src.sysmessage @07a1,,1 Riding Skilli : <src.riding>



[itemdef i_dcsg]
id i_gold
name Riding Skill
type t_eq_script

on=@create
attr attr_decay

on=@equip
timer 5
tag.ppos <cont.p>

on=@timer // properties.
if (<cont.riding> < <def.rid_<cont.findlayer.25.more1>>) // more fun :)
if (<r20> == 1)
cont.sysmessage @07a1,,1 Hayvanin hakimiyetini saglayamadiniz.
cont.dismount
endif
endif

if (<cont.riding> < 1000) && (<def.rid_<cont.findlayer.25.more1>> > <cont.riding>) // if skill bellow 100.0 and mount has more riding then player got
if (<distance <tag.ppos>> > 50) // distance have to move
if (<r5> == 1)
cont.riding +=1
cont.sysmessage @0120,,1 Riding Skilliniz 0.1 Yukselmistir.
tag.ppos <cont.p>
endif
endif
endif
timer 3
return 1

But still need fixes like ; when players use runebooks, moongates, telepads, ship planks whatever teleports the player have to reset i_dcsg tag.ppos otherwise player mount up recalls stay and wait for skill gain and loop.

[Image: riding.jpg]
(This post was last modified: 02-22-2014 12:28 AM by JohnVeritas.)
02-21-2014 10:42 PM
Find all posts by this user Like Post Quote this message in a reply
aptillah
Apprentice
*

Posts: 17
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2014
Reputation: 0



Post: #5
RE: new skill riding
sphere have a error now like this ERROR:(riding.scp,83)Undefined symbol ''
if (<cont.riding> < 1000) && (<def.rid_<cont.findlayer.25.more1>> > <cont.riding>) in this line
02-22-2014 01:47 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #6
RE: new skill riding
try to use def0 instead of def
02-22-2014 03:38 AM
Find all posts by this user Like Post Quote this message in a reply
amonvangrell
Banned

Posts: 337
Likes Given: 17
Likes Received: 32 in 20 posts
Joined: Aug 2012

britannia shard

Post: #7
RE: new skill riding
This is such a good idea, I wonder y this skill is not in UO.
I'll add it to my shard as well...
Thanks man!
02-22-2014 07:52 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Alaric
Journeyman
*

Posts: 227
Likes Given: 7
Likes Received: 9 in 4 posts
Joined: Oct 2012
Reputation: 7



Post: #8
RE: new skill riding
(02-22-2014 07:52 PM)amonvangrell Wrote:  This is such a good idea, I wonder y this skill is not in UO.
I'll add it to my shard as well...
Thanks man!
Making afk script for this is much easier than mining or lumberjacking Tongue
02-22-2014 10:14 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)