Knowledgebase
Storm Palace Hosting > Storm Hosting Help Desk > Knowledgebase

Ask a question:


Showme prop Room Script

Solution ON ENTER {
"@509 158 say SHOWME to preview all props in this room without clicking -- it ESC key if you'd like to halt the script at any point." LOCALMSG
"@509 158 ...once you have previewed, please use the forward and back pointers to find the prop number of your liking!" LOCALMSG
{ CLEARLOOSEPROPS PAINTCLEAR } NBRROOMUSERS 2 < IF
}
ON OUTCHAT {
room GLOBAL room EXEC
offerOutScript GLOBAL offerOutScript EXEC
crp GLOBAL
{ 0 crp = 20 ME SETALARM
"Now Shopping " ROOMNAME + LOGMSG
"" CHATSTR =
} CHATSTR "showme" == IF
}
ON ALARM { prar GLOBAL crp GLOBAL
prar EXEC proparray =
proparray crp GET SETPROPS
crp ++ crp ITOA "/" proparray LENGTH ITOA + + LOGMSG
{ 203 ME SETALARM } crp proparray LENGTH < IF
}
ON INCHAT {
offerInScript GLOBAL offerInScript EXEC
sacr GLOBAL sacr EXEC
}

To add rooms at the bottom of the pat file just add them before the END.
 
Was this article helpful? yes / no
Article details
Article ID: 232
Category: Room Scripts
Date added: 07-11-2011 22:09:02
Views: 451
Rating (Votes): Article rated 1.0/5.0 (1)

 
<< Go back

Powered by Help Desk Software HESK™