Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ Error

Error

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Ville   (4 posts)  Bio
Date Wed 10 Jun 2009 09:47 PM (UTC)
Message
Hey Guys.

No idea where else to turn because I've got serious problem with running a VBSCRIPT system, it keeps crashing for me. It's a premade system for a game so I havent coded it myself and it seem to be working for pretty much everyone but me, maybe someone got an idea if there's some easy way to solve it.

I'm running Vista.

So the error I get is.
Function/Sub: prompt_explode called by trigger
Reason: processing trigger "prompt_catch"

I'm pretty darn sure that I've loaded the system correctly so i'm beginning to wonder if it has something to do with my vista?

Well any ideas and help would be very much appreciated. If you there's any specific extra information you need I'll try to post it ASAP.

Regards
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #1 on Wed 10 Jun 2009 09:49 PM (UTC)
Message
Can you show us that trigger?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Ville   (4 posts)  Bio
Date Reply #2 on Wed 10 Jun 2009 09:51 PM (UTC)
Message
^(\d+)h\, (\d+)m\, (\d+)e\, (\d+)p\, (\d+)en\, (\d+)w\,? * (.*?)\<?\>?\-

That's all.

Execution of line 3520 column 3
Function/Sub: prompt_explode called by trigger
Reason: processing trigger "prompt_catch"
Inkompatibla typer: 'varH'

that's some extra information, I'm very poor at "coding" so if you have any way to specificly say what you need to know I'll do my best to post it.

Thankfull for any help I can get
Top

Posted by Ville   (4 posts)  Bio
Date Reply #3 on Wed 10 Jun 2009 09:56 PM (UTC)
Message
<triggers>
<trigger
enabled="y"
expand_variables="y"
group="*script"
keep_evaluating="y"
match="^(\d+)h\, (\d+)m\, (\d+)e\, (\d+)p\, (\d+)en\, (\d+)w\,? * (.*?)\&lt;?\&gt;?\-"
name="prompt_catch"
omit_from_output="y"
regexp="y"
repeat="y"
script="prompt_explode"
sequence="95"
>
</trigger>
</triggers>
Top

Posted by Fadedparadox   USA  (91 posts)  Bio
Date Reply #4 on Wed 10 Jun 2009 11:01 PM (UTC)
Message
That is the trigger. It calls a function though, prompt_explode, what does it look like?
Top

Posted by Ville   (4 posts)  Bio
Date Reply #5 on Thu 11 Jun 2009 08:00 AM (UTC)

Amended on Thu 11 Jun 2009 08:04 AM (UTC) by Ville

Message
I guess the funciton your looking for is in the script, so this is what I found.

sub prompt_explode (a, b, c)
'******** Time Stamp ********
setvariable "prompt_stamp", "" & (Timer()-dblTimer)

if getvariable("prompt_stamp") > 180 Then
dblTimer=dblTimer+180
setvariable "prompt_stamp",getvariable("prompt_stamp")-180
setvariable "prompt_count",getvariable("prompt_count")+3
elseif getvariable("prompt_stamp") > 120 Then
dblTimer=dblTimer+120
setvariable "prompt_stamp",getvariable("prompt_stamp")-120
setvariable "prompt_count",getvariable("prompt_count")+2
elseif getvariable("prompt_stamp") > 60 Then
dblTimer=dblTimer+60
setvariable "prompt_stamp",getvariable("prompt_stamp")-60
setvariable "prompt_count",getvariable("prompt_count")+1
end if

if getvariable("prompt_count") >= 60 Then
setvariable "prompt_count",getvariable("prompt_count")-60
setvariable "prompt_hour",getvariable("prompt_hour")+1
end if

if getvariable("prompt_hour") > 0 Then
setvariable "prompt_int", "" & getvariable("prompt_hour") & ":" & getvariable("prompt_count") & ":" & clng(getvariable("prompt_stamp")*100)/100
else
setvariable "prompt_int", "" & getvariable("prompt_count") & ":" & clng(getvariable("prompt_stamp")*100)/100
end if
'Note "c: " & c(1) '<-- THIS IS THE WIKLDCARD WOOT
'********** Prompt Instr **********
if instr(c(7), "p") then
setvariable "script_prone", "1"
setvariable "prompt_safe", "Proned!"
else
setvariable "script_prone", "0"
setvariable "temp_meditate", "0"
setvariable "temp_stand", "0"
setvariable "prompt_safe", "Safe"
setvariable "aff_fallen", "0"
end if
if instr(c(7), "e") then
setvariable "script_check_eq", "1"
setvariable "need_eq", "0"
setvariable "temp_eq", "0"
else
setvariable "script_check_eq", "0"
setvariable "temp_auto_eq", "0"
end if
if instr(c(7), "l") then
setvariable "script_check_larm", "1"
else
setvariable "script_check_larm", "0"
setvariable "temp_auto_larm", "0"
end if
if instr(c(7), "r") then
setvariable "script_check_rarm", "1"
else
setvariable "script_check_rarm", "0"
setvariable "temp_auto_rarm", "0"
end if
if instr(c(7), "k") then
setvariable "script_check_kafe", "1"
setvariable "need_kafe", "0"
else
setvariable "script_check_kafe", "0"
setvariable "need_kafe", "1"
end if
if instr(c(7), "x") then
setvariable "script_check_bal", "1"
else
setvariable "script_check_bal", "0"
setvariable "temp_auto_bal", "0"
end if
if instr(c(7), "s") then
setvariable "script_check_sub", "1"
else
setvariable "script_check_sub", "0"
end if
if instr(c(7), "S") then
setvariable "script_check_sup", "1"
else
setvariable "script_check_sup", "0"
end if
if instr(c(7), "i") then
setvariable "script_check_id", "1"
else
setvariable "script_check_id", "0"
end if
if instr(c(7), "b") then
setvariable "script_check_blind", "1"
else
setvariable "script_check_blind", "0"
end if
if instr(c(7), "d") then
setvariable "script_check_deaf", "1"
else
setvariable "script_check_deaf", "0"
end if

'********** Stat Catch **********
setvariable "script_health", c(1)
setvariable "script_mana", c(2)
setvariable "script_ego", c(3)
setvariable "script_power", c(4)
setvariable "script_endurance", c(5)
setvariable "script_willpower", c(6)
setvariable "prompt_letter", c(7)
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


20,250 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.