Page 1 of 1

Music Festival, Nala Melody

Posted: Fri Jun 05, 2015 8:23 am
by dx876234
Attached it my script for Music Festival event at NPC Nala Melody.

Note that you need the buff modifications at http://solarstrike.net/phpBB3/viewtopic ... 170#p61170 for this to work.
You must replace the two functions CPawn:updateBuffs and CPawn:getBuff in the rom/classes/Pawn.lua file with the ones given in the post.

Best regards
DX

Changes:
  • v1.03 - Fixed forgotten t_usetprune (Thx Celesteria)
    v1.02 - Added forgotten function safe_call
    v1.01 - Added API functions
    v1.00 - Base release

Re: Music Festival, Nala Melody

Posted: Fri Jun 05, 2015 11:09 am
by Testa
I did the buff modifications but get an error when i start the wp

Code: Select all

2015-06-05 18:05:36 - [string "..."]:12: attempt to index global 'api' (a nil value)

Re: Music Festival, Nala Melody

Posted: Fri Jun 05, 2015 12:14 pm
by dx876234
Damn, sorry!

I forgot I have most client functions interfaced in my own userfunction, Ill update and repost

-dx

Re: Music Festival, Nala Melody

Posted: Fri Jun 05, 2015 12:34 pm
by Testa
thx for update :D

next error (version 1.01):

Code: Select all

2015-06-05 19:32:33 - [string "..."]:16: attempt to call global 'safe_call' (a nil value)

Re: Music Festival, Nala Melody

Posted: Fri Jun 05, 2015 12:55 pm
by dx876234
Well, now I think all dependecies are removed....

-dx

Re: Music Festival, Nala Melody

Posted: Fri Jun 05, 2015 1:19 pm
by Testa
now after a first test it works great. big thx

Re: Music Festival, Nala Melody

Posted: Sun Jun 07, 2015 11:39 am
by latino18fr
i change pawn.lua and try you waypoin it doesn't work for me.
just go to the machine then nothing.

Could you please upload the 2 files to check and compare where is the problem?

thks

Re: Music Festival, Nala Melody

Posted: Sun Jun 07, 2015 11:48 am
by Celesteria
hi, nice script.

please update:

Code: Select all

-- line 175 from --
ChoiceOptionByName('I happen to have')
-- line 175 to --
ChoiceOptionByName(t_usetprune)
so it also works with non-english clients correctly :)


greetings
Celesteria

Re: Music Festival, Nala Melody

Posted: Mon Jun 08, 2015 9:41 am
by Testa
latino18fr wrote: Could you please upload the 2 files to check and compare where id the problem?
which 2 files?

pawn.lua -> Attachment
script -> post 1 version 1.02

with this 2 files it works for me

Re: Music Festival, Nala Melody

Posted: Thu Jun 11, 2015 6:55 pm
by beanybabe
i tried the 1.03 It does not seem to do much but stand there I never see it cast or target anything. it ends with no happy toy.

Re: Music Festival, Nala Melody

Posted: Fri Jun 12, 2015 12:46 am
by dx876234
Have you updated the pawn.lua file?

-dx

Re: Music Festival, Nala Melody

Posted: Wed Jul 01, 2015 12:25 am
by Illiteratecodewriter
ok took me awhile but got it working ty this helps a lot but how would I get it to repeat itself for the transport rune?

X>Z

Re: Music Festival, Nala Melody

Posted: Tue Jul 07, 2015 7:54 am
by dx876234
In the top of the file u specify the number of tp runes you want to use

-dx