Go Back   The Palace Avatar Chat Community Forums. > Palace Builders Palace Users > Scripting Help

Scripting Help Iptscrae et omni potentum, Scripting is all powerfull. So here you can ask for Help with your scripting problems.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-01-2007, 07:11 PM
PleasureMaster's Avatar
Palace User
 
Join Date: Feb 2007
Posts: 13
Rep Power: 0
PleasureMaster is on a distinguished road
music script

need a multi song download script for a dance club i am aware that only high speed can use it and will say so in room here is what i am trying to use now but not all songs download only 1 or 2

ON SELECT {
"iwannafuku.wav"
"wantsumpussy.wav"
"candyshop.wav"
"ac-dc_remix.wav"
"BoomBoomBoom.wav"
"CrazyFrog.wav"
"Brickhouse.wav"
"MyHumps.wav"
"Switch.wav"
"NoHeaven.wav"
"monymony.wav"
"DuttyWine.wav"
"londonbridge.wav" SOUND }

ty again
PleasureMaster
Reply With Quote
  #2 (permalink)  
Old 03-02-2007, 02:18 PM
Finna's Avatar
Super Moderator
 
Join Date: Mar 2006
Location: MO, USA
Posts: 55
Rep Power: 6
Finna is on a distinguished road
try this one and no high speed isn't the only one that can download, dial up users can also just between being on dial up and you on a privater server it will take them a long time to do so.

ON ENTER { "Say 'songlist' to see a list of songs. To download a song, type the corresponding number. To play it, type the number again. To stop a song type: stop" LOCALMSG}
ON OUTCHAT {
{"01" No Song
"02" No Song
"03" No Song
"04" No Song
"05" No Song
"06" No Song
"07" No Song
"08" No Song
"09" No Song
"10" No Song
"11" No Song
"12" No Song
} CHATSTR "songlist" == IF
{"No Song.wav" SOUND} CHATSTR "01" == IF
{"No Song.wav" SOUND} CHATSTR "02" == IF
{"No Song.wav" SOUND} CHATSTR "03" == IF
{"No Song.wav" SOUND} CHATSTR "04" == IF
{"No Song.wav" SOUND} CHATSTR "05" == IF
{"No Song.wav" SOUND} CHATSTR "06" == IF
{"No Song.wav" SOUND} CHATSTR "07" == IF
{"No Song.wav" SOUND} CHATSTR "08" == IF
{"No Song.wav" SOUND} CHATSTR "09" == IF
{"No Song.wav" SOUND} CHATSTR "10" == IF
{"No Song.wav" SOUND} CHATSTR "11" == IF
{"No Song.wav" SOUND} CHATSTR "12" == IF
{ ME UNLOCK } CHATSTR LOWERCASE "stop" == IF}
__________________
If all the worlds a stage, who handles the rewrites?
Reply With Quote
  #3 (permalink)  
Old 04-06-2007, 06:20 PM
LJ©'s Avatar
Palace User
 
Join Date: Mar 2007
Location: Brisbane, Australia
Posts: 12
Rep Power: 0
LJ© is on a distinguished road
PM.. This evolution on Finna's script may be handy...

Looking at what Finna wrote, I thought using an array may be a useful modification to Finna's script. This means all EDITS of songs take place in one part of the script... And therefore less likely to be messed up.

So PM, this should work also....


ON ENTER { "Say 'songlist' to see a list of
songs. To download a song, type the corresponding
number. To play it, type the number again. To stop a
song type: stop" LOCALMSG}
ON OUTCHAT {
my_musik GLOBAL

[ "iwannafuku.wav" "wantsumpussy.wav" "candyshop.wav"
"ac-dc_remix.wav" "BoomBoomBoom.wav" "CrazyFrog.wav"
"Brickhouse.wav" "MyHumps.wav" "Switch.wav"
"NoHeaven.wav" "monymony.wav" "DuttyWine.wav"
"londonbridge.wav" ] my_musik =

{ 0 tempvar =
{ tempvar ++ "___" & tempvar ITOA & LOGMSG } my_musik
FOREACH
"" GREPSUB CHATSTR = } CHATSTR LOWERCASE "^songlist$"
GREPSTR IF
{ ME UNLOCK
""GREPSUB CHATSTR = } CHATSTR LOWERCASE "^stop$"
GREPSTR IF

{;songs 1-9
CHATSTR ATOI yourNumber =
yourNumber --
{ my_musik yourNumber GET SOUND } { yourNumber ++
"Sorry, there is no song " yourNumber ITOA & SAY }
yourNumber my_musik LENGTH < IFELSE
"" GREPSUB CHATSTR =
} CHATSTR "^[0-9]$" GREPSTR IF

{;songs 10-99
CHATSTR ATOI yourNumber =
yourNumber --
{ my_musik yourNumber GET SOUND } { yourNumber ++
"Sorry, there is no song " yourNumber ITOA & SAY }
yourNumber my_musik LENGTH < IFELSE
;my_musik yourNumber GET SOUND
"" GREPSUB CHATSTR =
} CHATSTR "^[0-9][0-9]$" GREPSTR IF

}
Reply With Quote
Reply
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
converting music files malaki User Questions 3 03-08-2005 04:41 AM
Music On Palace MollC Planet Community 1 10-12-2004 03:17 PM
music on pally moneykid04 User Questions 1 06-03-2004 09:40 AM
SpiritsVision Music Tour des2222 Event announcements. 0 04-17-2004 03:58 AM
Music Festival Tour Kick Off Haven Event announcements. 0 07-03-2003 09:16 AM

The Latest Posts
Title, Username, & Date Last Post Forum
download
03-21-2011 11:20 AM
by maarten
User Questions
Palace for Mac OS 10.6?
03-13-2011 09:39 AM
by pawnipt
User Questions
Server
03-07-2011 04:52 PM
by satinrose
User Questions
Return room Script
02-24-2011 12:07 AM
by jaela
Room Scripts
Releasing source code
02-17-2011 09:19 AM
by Sman�
Developers Forum
Website spammers
01-26-2011 08:48 PM
by maarten
The Planet: Palace News
Online Users: 66
1 members and 65 guests
VeraFlorsewal
Most users ever online was 1,010, 06-27-2007 at 11:45 PM.
Stats
Members: 5,112
Threads: 1,141
Posts: 4,004
Top Poster: maarten (1,169)
Welcome to our newest member, cliffymayers


All times are GMT +2. The time now is 03:01 PM.


Powered by vBulletin
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0