This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

help scripts

Old posts that have not been replied to for several years.
Locked
t
tahu
Voice
Posts: 14
Joined: Fri Feb 11, 2005 10:45 pm
Location: bandung
Contact:

help scripts

Post by tahu »

hello guys..
please help me to fix this.

Code: Select all


if {$upasAnswerCount == 1} {
 upasmsg "[b]Title 1[/b]"
 upasmsg "question : $upasQuestion ? "
 upasmsg "Survey     : 8 $upasPointsPerAnswer $upasPointsName"
 upasmsg "\00313$tipzs"

} elseif {$upasAnswerCount <= 2} {
 upasmsg "[b]Title 2[/b]"
 upasmsg "WORD       : 9 $upasQuestion ? "
 upasmsg "Hint : 8 $upasAnswerCount "
 upasmsg "$tipzs"

}elseif {$upasAnswerCount >= 3} {
 upasmsg "[b]Title 3[/b]"
 upasmsg "KATA   : 9 $upasQuestion ? "
 upasmsg "Survey : 8 $upasAnswerCount "
 upasmsg "$tipzs"
no limit to learn
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

For a start, use the code tags. Secondly, READ this post.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

What is upasmsg and what does it basically do?
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

For starters

Code: Select all

}elseif {$upasAnswerCount >= 3} {
there should be a space after the first closed brace (})
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

awyeah wrote:What is upasmsg and what does it basically do?
Trivia script is my guess. :)
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

Alchera wrote:
awyeah wrote:What is upasmsg and what does it basically do?
Trivia script is my guess. :)
you fluent in Malayan/Indonesian? :)
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

No man im not malaysian, am from Pakistan. I can fluently speak Hindi, Urdu, Punjabi and English.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

awyeah wrote:No man im not malaysian, am from Pakistan. I can fluently speak Hindi, Urdu, Punjabi and English.
obviously you aren't :) otherwise you wouldn't have asked what upasmsg is

I was actually quoting Alchera
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

/me falls off his chair
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
t
tahu
Voice
Posts: 14
Joined: Fri Feb 11, 2005 10:45 pm
Location: bandung
Contact:

Post by tahu »

i try to write word game in tcl
how to make the bot read the title when answer only 1 the title "sample one" , if answer got 2 the title "sample two" and if the answer got 3 the title make deferent post like "sample 3"
thanks

if {$upasAnswerCount == 1} {
upasmsg "Title 1"
upasmsg "question : $upasQuestion ? "
upasmsg "Survey : 8 $upasPointsPerAnswer $upasPointsName"
upasmsg "\00313$tipzs"

} elseif {$upasAnswerCount <= 2} {
upasmsg "Title 2"
upasmsg "WORD : 9 $upasQuestion ? "
upasmsg "Hint : 8 $upasAnswerCount "
upasmsg "$tipzs"

}elseif {$upasAnswerCount >= 3} {
upasmsg "Title 3"
upasmsg "KATA : 9 $upasQuestion ? "
upasmsg "Survey : 8 $upasAnswerCount "
upasmsg "$tipzs"
no limit to learn
Locked