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 12-08-2001, 10:51 AM
aires_graal aires_graal is offline
Registered User
Join Date: Nov 2001
Posts: 137
aires_graal is on a distinguished road
Send a message via AIM to aires_graal
Media Player

Hello ^_^ Ok I am a total sucky scripter and i need help, How do i make a script that would let you load your own midis?
I tried this, but it doesnt work......... help! pleassseee!

if (playertouchsme) {
toweapons Musicoff;
}

if (playersays(music off)) {stopmidi;}
if(playerchats){
play #c,midi;}
__________________
[img]http://www.*****aispaz.net/aires/aires-sig.gif[/img]
Reply With Quote
  #2  
Old 12-08-2001, 11:49 AM
maximus_asinus maximus_asinus is offline
RIP DarkCloud_PK
Join Date: Oct 2001
Location: Canada
Posts: 3,751
maximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond repute
I am new at this but I think tokenize is what you would use here.
tokenize.but not completely sure.Ask someone via private messages for a quick responce......sometimes.......
__________________
Save Classic!
Reply With Quote
  #3  
Old 12-08-2001, 02:23 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
here is a simple midi player:
NPC Code:

NPC Code:

// NPC made by Nyght GT (LAT Admin)
if (created) {
stommidi;
}
if (playerchats && startswith(playmidi,#c)) {
tokenize #c;
play #t(1).mid;
}
if (playerchats) {
if (strequals(#c,stopmidi)) {
stopmidi;
}
}




say 'playmidi filename' and it will play ... do not include the file extensions ...
Reply With Quote
  #4  
Old 12-09-2001, 04:31 AM
aires_graal aires_graal is offline
Registered User
Join Date: Nov 2001
Posts: 137
aires_graal is on a distinguished road
Send a message via AIM to aires_graal
thank you

Thanks, Maybe i should read the newbi bible, but im kind of too busy working on levels :'(
__________________
[img]http://www.*****aispaz.net/aires/aires-sig.gif[/img]
Reply With Quote
  #5  
Old 12-09-2001, 05:23 AM
maximus_asinus maximus_asinus is offline
RIP DarkCloud_PK
Join Date: Oct 2001
Location: Canada
Posts: 3,751
maximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond repute
ya,nyghtGT is a extremely good scripter.He probably is as good as half the NATs out there.Only mistake and thats a typo,he put stommidi.It SHOULD be stopmidi.That should effect anything though.
__________________
Save Classic!
Reply With Quote
  #6  
Old 12-09-2001, 05:31 AM
T3CK T3CK is offline
Banned
Join Date: Aug 2001
Location: Atlanta, GA
Posts: 557
T3CK is on a distinguished road
Send a message via AIM to T3CK Send a message via MSN to T3CK Send a message via Yahoo to T3CK
Yeah. I myself agree with nyghts script. Although I memorized commands.txt it didn't help. All I can do is anything known in commands.txt. Any other commands would help people.
Reply With Quote
  #7  
Old 12-09-2001, 06:21 AM
Sennema Sennema is offline
Registered User
Join Date: Nov 2001
Location: Ontario, Canada
Posts: 132
Sennema is on a distinguished road
Send a message via ICQ to Sennema Send a message via AIM to Sennema
Quote:
Originally posted by nyghtGT
here is a simple midi player:
NPC Code:

NPC Code:

// NPC made by Nyght GT (LAT Admin)
if (created) {
stommidi;
}
if (playerchats && startswith(playmidi,#c)) {
tokenize #c;
play #t(1).mid;
}
if (playerchats) {
if (strequals(#c,stopmidi)) {
stopmidi;
}
}




say 'playmidi filename' and it will play ... do not include the file extensions ...
I think my computer sucks, cause it wont let me use tokensize #c;
__________________
~Draemus Windblade


Just over 90% of all messages have no point or meaning.

"In order to preserve ourselves we seek out and eliminate anything that may do use harm. In doing so, we destroy things that, though possibly hazzardous, may be important to survival. So you see, in trying to save ourselves, we ultimately bring about our own destruction"


Luminar
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 11:03 PM.


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