mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2014
Posts: 42
K
Kooky Offline OP
Ameglian cow
OP Offline
Ameglian cow
K
Joined: Oct 2014
Posts: 42
So I could really use some help. I'm going to list my goal, then show you what I've "completed" thus far. I am an extreme newbie at scripting and have created this by piecing together ideas. Can anyone help make it work out? Please note that the player's nickname/screenname is linked to a variable already linked to a .char file for their character.

!add Nickname SkillName Amount#
Read $nick CharacterName.char Find section Skill and SkillName, add if it's not there, $calc +Amount#

Example: !add Tom Digging 2
Would give Tom's character the Digging skill of 2 or increase the existing skill by 2.

Code:
File is CharacterName.char
[Character]
CurrentNick=
Name=
Age=

[Skills]
Swimming=1
Tailoring=3

alias skill.control {
  ; $1 = player
  ; $2 = skill
  ; $3 = amount


on 3:TEXT:!add*:*:{ $skill.control($1, $2, $3) } 
var %check.skill $readini($char($1), Skill, $3) 
    if ((%check.skill <= 0) || (%check.skill = $null))
    if ((%check.skill >= 0) { writeini ($char($1), Skill, $3)) }
{ /msg $chan $1 has gained $3 in $2) | halt }

Joined: Nov 2015
Posts: 14
N
Pikka bird
Offline
Pikka bird
N
Joined: Nov 2015
Posts: 14
You can guide yourself looking in the battle arena Irc (BAI) scripts.

Here you can find it: http://hawkee.com/scripts/28634301/

BAI is a rpg game for irc.

Joined: Oct 2014
Posts: 42
K
Kooky Offline OP
Ameglian cow
OP Offline
Ameglian cow
K
Joined: Oct 2014
Posts: 42
Originally Posted By: nanito
You can guide yourself looking in the battle arena Irc (BAI) scripts.

Here you can find it: http://hawkee.com/scripts/28634301/

BAI is a rpg game for irc.



That's what I've been using to help me already, but I still can't find what I'm looking for because it's just too complex for me read as a novice as that script lends itself to multiple files and sections.


Link Copied to Clipboard