Knowledgebase
Storm Palace Hosting > Storm Hosting Help Desk > Knowledgebase

Ask a question:


Picture Changer with log message

Solution In the Pic door put ...........
;::::::::::::: the help is added in the lines in the script::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::the pic holder door:::::::::::::::::::::::::::::::::::::::::::::::::::::::


ON ENTER
{
linkspot GLOBAL ME linkspot =
-1 ME SETSPOTSTATELOCAL
cmd GLOBAL "next" cmd =
5 ME SETALARM
}
ON SELECT
{
destination GLOBAL
type GLOBAL
{ destination " GOTOROOM" & STRTOATOM EXEC } type "rm" == IF
{ "\"palace://" destination & "\" NETGOTO" & STRTOATOM EXEC } type "pal" == IF
{ "\"http://" destination & "\" NETGOTO" & STRTOATOM EXEC } type "web" == IF
{ "\"mailto:" destination & "\" NETGOTO" & STRTOATOM EXEC } type "email" == IF
}
ON ALARM
{
cmd GLOBAL
destination GLOBAL
type GLOBAL
[
[ "" "" "Hey there welcome to the blabla test show please select with the next and prev door" ]
[ "" "" "blabla pic 2" ]
[ "" "" "blabla pic 3" ]
[ "" "" "blabla pic 4" ]


] linkarray =
"@340,75 " messagelocation =
{ ME GETSPOTSTATE 1 + linkarray LENGTH % newstate = } cmd "next" == IF
{ ME GETSPOTSTATE 1 - linkarray LENGTH + linkarray LENGTH % newstate = } cmd "previous" == IF
newstate ME SETSPOTSTATELOCAL
linkarray newstate GET temparray =
temparray 0 GET type =
temparray 1 GET destination =
temparray 2 GET message =
{ messagelocation message & LOGMSG } message "" == NOT IF
}


------------------------------------------------
Make a second Door and name it next. In the Next Door put ON SELECT
{
linkspot GLOBAL
cmd GLOBAL
"next" cmd =
0 linkspot SETALARM
}

----------------------------------------------
Make a third door and name it previous. In the previous door put ON SELECT
{
linkspot GLOBAL
cmd GLOBAL
"previous" cmd =
0 linkspot SETALARM
}
 
Was this article helpful? yes / no
Article details
Article ID: 394
Category: Tutorials - Picture/Images
Date added: 03-31-2019 19:01:08
Views: 11
Rating (Votes): Article not rated yet (0)

 
<< Go back

Powered by Help Desk Software HESK™