Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-16-2005, 06:00 AM
alissalee alissalee is offline
Mr. Ciprioni Atrius Admin
alissalee's Avatar
Join Date: Dec 2004
Location: Lawrence, Ma
Posts: 190
alissalee is an unknown quantity at this point
Send a message via AIM to alissalee Send a message via MSN to alissalee
Music

can some one fix this i have no clue why it wont work online
// NPC made by Jay Working Pm RC
if (created) {
}
if (playerchats&&strequals(#c,Play 1
)&&strequals(#c,Play 1)) {
play http://www.detour.net/~micah/files/mp3s/50%20Cent%20-%20Get%20Rich%20or%20Die%20Trying/16-50_cent-gotta_get-rns.mp3;}

if (playerchats&&strequals(#c,Play 2
)&&strequals(#c,Play 2)) {
play http://www.eden.rutgers.edu/~cpark26/Tupac%20-%20Do%20For%20Love.mp3;}
some on please help
Reply With Quote
  #2  
Old 08-16-2005, 06:07 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Okay, here are a few things you can fix:

1) Playing music is a clientside thing, so this code should be clientside.
2) You have an empty code block for the 'created' event. It can be removed.
3) You are checking if the chat text is Play 1 or Play 2 twice. One of each can be removed.
4) That first link does not seem to work.
Reply With Quote
  #3  
Old 08-16-2005, 07:10 AM
alissalee alissalee is offline
Mr. Ciprioni Atrius Admin
alissalee's Avatar
Join Date: Dec 2004
Location: Lawrence, Ma
Posts: 190
alissalee is an unknown quantity at this point
Send a message via AIM to alissalee Send a message via MSN to alissalee
thank you lance and sorry for not lisening to the rules before sorry about that but that link works it is just a windows player file for some reason and than you for ur help
Reply With Quote
  #4  
Old 08-17-2005, 06:01 AM
alissalee alissalee is offline
Mr. Ciprioni Atrius Admin
alissalee's Avatar
Join Date: Dec 2004
Location: Lawrence, Ma
Posts: 190
alissalee is an unknown quantity at this point
Send a message via AIM to alissalee Send a message via MSN to alissalee
now if i wanted to could i make it a radio db npc? using the same script? but making it go to the players atts and then they can use it form anywere in the server not asking for script
Reply With Quote
  #5  
Old 08-17-2005, 06:06 AM
alissalee alissalee is offline
Mr. Ciprioni Atrius Admin
alissalee's Avatar
Join Date: Dec 2004
Location: Lawrence, Ma
Posts: 190
alissalee is an unknown quantity at this point
Send a message via AIM to alissalee Send a message via MSN to alissalee
wait would this work
[CODE]// NPC made by Jay Working Pm RC
//#CLIENTSIDE
if (created) {
}
if (playerchats&&strequals(#c,Play 1
)&&strequals(#c,Play 1)) {
play http://www.detour.net/~micah/files/mp3s/50%20Cent%20-%20Get%20Rich%20or%20Die%20Trying/16-50_cent-gotta_get-rns.mp3;}

if (playerchats&&strequals(#c,Play 2
)&&strequals(#c,Play 2)) {
play http://www.eden.rutgers.edu/~cpark26/Tupac%20-%20Do%20For%20Love.mp3;}

if (playerchats&&strequals(#c,Play 3
)&&strequals(#c,Play 3)) {
play http://home.galileo.edu/~juasierra/MUSICA/Avril%20Lavigne%20-%20happyending.mp3;}

if (playerchats&&strequals(#c,Play 4
)&&strequals(#c,Play 4)) {
play http://64.236.34.196:80/stream/1071;}

if (playerchats&&strequals(#c,play 6
)&&strequals(#c,play 6)) {
play http://duorok.free.fr/MP3/wonderwall.mp3;}

if (playerchats&&strequals(#c,play 7
)&&strequals(#c,play 7)) {
play http://pinkninja.net/mp3s/Hilary%20Duff%20-%20Wake%20Up.mp3;}

if (playerchats&&strequals(#c,play 5
)&&strequals(#c,play 5)) {
play http://208.53.131.54:11000/;}







if (weaponfired) {
say2 say play 1 for 50 cent gatta get#b
play 2 for tupac do for love#b
play 3 for avril Lavigne#b
play 4 for hot 108 rap and r&b#b
play 5 for La Mega #b
play 6 for Oasis#b
play 7 for Hilary Duff[CODE]
would that work?
Reply With Quote
  #6  
Old 08-17-2005, 10:35 PM
Maniaman Maniaman is offline
Registered User
Join Date: Aug 2005
Posts: 326
Maniaman is on a distinguished road
Why are you checking #c twice?
__________________

Current Maloria Event: (click to go to it)
Reply With Quote
  #7  
Old 08-18-2005, 01:15 AM
alissalee alissalee is offline
Mr. Ciprioni Atrius Admin
alissalee's Avatar
Join Date: Dec 2004
Location: Lawrence, Ma
Posts: 190
alissalee is an unknown quantity at this point
Send a message via AIM to alissalee Send a message via MSN to alissalee
Half asleep when i posted it agan
Reply With Quote
  #8  
Old 08-24-2005, 10:39 PM
calani calani is offline
Scriptess
calani's Avatar
Join Date: Aug 2003
Location: asmgarden.gmap
Posts: 606
calani is on a distinguished road
Send a message via AIM to calani
my advice to you: go get a nat.
__________________
Reply With Quote
  #9  
Old 08-25-2005, 02:23 AM
alissalee alissalee is offline
Mr. Ciprioni Atrius Admin
alissalee's Avatar
Join Date: Dec 2004
Location: Lawrence, Ma
Posts: 190
alissalee is an unknown quantity at this point
Send a message via AIM to alissalee Send a message via MSN to alissalee
i had one till he started abusing his powers so we have non were looking for some right now
Reply With Quote
Reply


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

Forum Jump


All times are GMT +2. The time now is 03:53 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.