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 07-08-2003, 03:36 AM
Darlene159 Darlene159 is offline
Administrator
Darlene159's Avatar
Join Date: Aug 2001
Location: Florida
Posts: 12,470
Darlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud of
Is there a way to............

Is there a way to add our own emoticons? I dont mean to replace any, I mean to add new ones just for our PW's....or do they have to be sent to stefan to be added?
__________________
FORUM RULES
GRAAL BIBLE (Lots of useful info)
INFO ABOUT REPUTATIONS.
INFO ABOUT INFRACTIONS.
HOW TO APPLY FOR THE NON-GRAAL RELATED FORUM (<<READ THOROUGHLY!)

SUPPORT: http://support.toonslab.com

NOTE: YOU ARE RESPONSIBLE FOR YOUR OWN POSTS.
READ>THINK>POST
Reply With Quote
  #2  
Old 07-08-2003, 03:56 AM
protagonist protagonist is offline
Banned
protagonist's Avatar
Join Date: May 2003
Location: CAW
Posts: 5,586
protagonist is on a distinguished road
Send a message via AIM to protagonist Send a message via MSN to protagonist
Yes, there is a way. UN has a system right now. It basically uses keydown.
Reply With Quote
  #3  
Old 07-08-2003, 04:18 AM
Darlene159 Darlene159 is offline
Administrator
Darlene159's Avatar
Join Date: Aug 2001
Location: Florida
Posts: 12,470
Darlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud of
Quote:
Originally posted by protagonist
Yes, there is a way. UN has a system right now. It basically uses keydown.
But, But, But........How??????
lol
Feel free to forum PM me
__________________
FORUM RULES
GRAAL BIBLE (Lots of useful info)
INFO ABOUT REPUTATIONS.
INFO ABOUT INFRACTIONS.
HOW TO APPLY FOR THE NON-GRAAL RELATED FORUM (<<READ THOROUGHLY!)

SUPPORT: http://support.toonslab.com

NOTE: YOU ARE RESPONSIBLE FOR YOUR OWN POSTS.
READ>THINK>POST
Reply With Quote
  #4  
Old 07-08-2003, 04:45 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Keydown2, technically. Moon Goddess, this isn't something that a new scripter can realistically make. It involves abstract definition of key maps, polling the relevant keys and setting complimentary ganis. Not hugely complicated stuff (the script would probably be very short), but requires a reasonable degree of experience.
__________________
Reply With Quote
  #5  
Old 07-08-2003, 04:51 AM
Darlene159 Darlene159 is offline
Administrator
Darlene159's Avatar
Join Date: Aug 2001
Location: Florida
Posts: 12,470
Darlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud of
Quote:
Originally posted by Kaimetsu
Keydown2, technically. Moon Goddess, this isn't something that a new scripter can realistically make. It involves abstract definition of key maps, polling the relevant keys and setting complimentary ganis. Not hugely complicated stuff (the script would probably be very short), but requires a reasonable degree of experience.
I see
__________________
FORUM RULES
GRAAL BIBLE (Lots of useful info)
INFO ABOUT REPUTATIONS.
INFO ABOUT INFRACTIONS.
HOW TO APPLY FOR THE NON-GRAAL RELATED FORUM (<<READ THOROUGHLY!)

SUPPORT: http://support.toonslab.com

NOTE: YOU ARE RESPONSIBLE FOR YOUR OWN POSTS.
READ>THINK>POST
Reply With Quote
  #6  
Old 07-08-2003, 06:51 AM
Andy0687 Andy0687 is offline
Enigma
Join Date: Feb 2002
Posts: 1,072
Andy0687 is on a distinguished road
Quote:
Originally posted by Kaimetsu
Keydown2, technically. Moon Goddess, this isn't something that a new scripter can realistically make. It involves abstract definition of key maps, polling the relevant keys and setting complimentary ganis. Not hugely complicated stuff (the script would probably be very short), but requires a reasonable degree of experience.
it dosent take so much trouble, the hardest part is making the ganis, based on how complex you want

i was making one of these for babylon
__________________
Reply With Quote
  #7  
Old 07-08-2003, 06:55 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by Andy0687
it dosent take so much trouble, the hardest part is making the ganis, based on how complex you want
As I said, it's not particularly difficult or complicated, but you need to be able to think like a scripter. Especially if you want it to be a half-decent implementation.
__________________
Reply With Quote
  #8  
Old 07-08-2003, 03:09 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
I am pretty sure there is some way to use your PW's emoticons through the default system. I just don't remember how.
Reply With Quote
  #9  
Old 07-08-2003, 03:44 PM
protagonist protagonist is offline
Banned
protagonist's Avatar
Join Date: May 2003
Location: CAW
Posts: 5,586
protagonist is on a distinguished road
Send a message via AIM to protagonist Send a message via MSN to protagonist
Quote:
Originally posted by Andy0687


it dosent take so much trouble, the hardest part is making the ganis, based on how complex you want

i was making one of these for babylon
It's easier just to use MNGs and showimg.
Reply With Quote
  #10  
Old 07-08-2003, 03:53 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by protagonist
It's easier just to use MNGs and showimg.
Easier, maybe. But any person who chooses a laggy, inefficient path just to save himself a little effort does not deserve to be called a scripter.
__________________
Reply With Quote
  #11  
Old 07-08-2003, 04:10 PM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
Quote:
Originally posted by Kaimetsu


Easier, maybe. But any person who chooses a laggy, inefficient path just to save himself a little effort does not deserve to be called a scripter.
In other words, Gani's are superior.

I agree.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #12  
Old 07-08-2003, 04:19 PM
protagonist protagonist is offline
Banned
protagonist's Avatar
Join Date: May 2003
Location: CAW
Posts: 5,586
protagonist is on a distinguished road
Send a message via AIM to protagonist Send a message via MSN to protagonist
Quote:
Originally posted by Kaimetsu


Easier, maybe. But any person who chooses a laggy, inefficient path just to save himself a little effort does not deserve to be called a scripter.

I'm glad I didn't write the NPC on UN, then.
Reply With Quote
  #13  
Old 07-08-2003, 05:19 PM
Darlene159 Darlene159 is offline
Administrator
Darlene159's Avatar
Join Date: Aug 2001
Location: Florida
Posts: 12,470
Darlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud of
are the other emoticons gani's? I dont recall seeing any gani's....if I could just see how the others are done, maybe I could figure it out...but evidently it is scripted into the client or something, I cant find anything on it except how to disable them
__________________
FORUM RULES
GRAAL BIBLE (Lots of useful info)
INFO ABOUT REPUTATIONS.
INFO ABOUT INFRACTIONS.
HOW TO APPLY FOR THE NON-GRAAL RELATED FORUM (<<READ THOROUGHLY!)

SUPPORT: http://support.toonslab.com

NOTE: YOU ARE RESPONSIBLE FOR YOUR OWN POSTS.
READ>THINK>POST
Reply With Quote
  #14  
Old 07-08-2003, 07:15 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Quote:
Originally posted by Darlene159
are the other emoticons gani's?
They should be [pm]ngs in levels/emoticons or such. I believe the naming scheme is emoticon_key that triggers itrandomtext.[pm]ng... I guess you could try simply naming your emoticon similarly and putting it into a GFX enabled folder.
Reply With Quote
  #15  
Old 07-08-2003, 08:21 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
I and Senkasui already made that for Gaia long time ago,we basically used ganis & keydown.

NPC Code:

if(created){
timeout=0.05;
}

if(timeout){
if(keydown2(17,true)){
if(keydown2(keycode(1),true)){
setani dead,; //Put the new emoticon gani here
}
}
timeout=0.05;
}



If you press ctrl+1,it will active the gani dead,just replace that gani by the emoticon gani.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #16  
Old 07-08-2003, 09:40 PM
Darlene159 Darlene159 is offline
Administrator
Darlene159's Avatar
Join Date: Aug 2001
Location: Florida
Posts: 12,470
Darlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud of
Quote:
Originally posted by osrs
I and Senkasui already made that for Gaia long time ago,we basically used ganis & keydown.

NPC Code:

if(created){
timeout=0.05;
}

if(timeout){
if(keydown2(17,true)){
if(keydown2(keycode(1),true)){
setani dead,; //Put the new emoticon gani here
}
}
timeout=0.05;
}



If you press ctrl+1,it will active the gani dead,just replace that gani by the emoticon gani.
What would you change the setani to for an emoticon, or would it be setgani?
__________________
FORUM RULES
GRAAL BIBLE (Lots of useful info)
INFO ABOUT REPUTATIONS.
INFO ABOUT INFRACTIONS.
HOW TO APPLY FOR THE NON-GRAAL RELATED FORUM (<<READ THOROUGHLY!)

SUPPORT: http://support.toonslab.com

NOTE: YOU ARE RESPONSIBLE FOR YOUR OWN POSTS.
READ>THINK>POST
Reply With Quote
  #17  
Old 07-08-2003, 11:53 PM
mhermher mhermher is offline
galase galase!
mhermher's Avatar
Join Date: Jun 2001
Location: Sweden, Stockholm.
Posts: 2,012
mhermher is on a distinguished road
Send a message via ICQ to mhermher Send a message via AIM to mhermher Send a message via Yahoo to mhermher
Quote:
Originally posted by Darlene159
What would you change the setani to for an emoticon, or would it be setgani?
replace every gani you have, add a emoticon PARAM in it, over the players head.

Then just do like setani idle,happyemoticon.gif;
or
setani idle,noicon.gif;

no icon would be empty, so there wouldn't be emoticons all the time
__________________
Donate money for my trip to Germany

Adiarde Manager
Reply With Quote
  #18  
Old 07-09-2003, 12:31 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by mhermher


replace every gani you have, add a emoticon PARAM in it, over the players head.

Then just do like setani idle,happyemoticon.gif;
or
setani idle,noicon.gif;

no icon would be empty, so there wouldn't be emoticons all the time
setplayerprop #P(#),emotion.gani,emotionimage.png;
would probably be better
Reply With Quote
  #19  
Old 07-09-2003, 02:31 AM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Quote:
Originally posted by Darlene159
What would you change the setani to for an emoticon, or would it be setgani?
Read Jagen's post.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #20  
Old 07-09-2003, 03:40 AM
mhermher mhermher is offline
galase galase!
mhermher's Avatar
Join Date: Jun 2001
Location: Sweden, Stockholm.
Posts: 2,012
mhermher is on a distinguished road
Send a message via ICQ to mhermher Send a message via AIM to mhermher Send a message via Yahoo to mhermher
Quote:
Originally posted by Python523

setplayerprop #P(#),emotion.gani,emotionimage.png;
would probably be better

True...

*gets into that i taught jagen how to script thingy* j/k.. that was old times hehe.. now you're better than me
__________________
Donate money for my trip to Germany

Adiarde Manager
Reply With Quote
  #21  
Old 07-09-2003, 05:45 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by Loriel
They should be [pm]ngs in levels/emoticons or such. I believe the naming scheme is emoticon_key that triggers itrandomtext.[pm]ng... I guess you could try simply naming your emoticon similarly and putting it into a GFX enabled folder.
Isn't that a global thing, though? You couldn't replace an emote on your own server without changing it for every server?
__________________
Reply With Quote
  #22  
Old 07-09-2003, 01:36 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Quote:
Originally posted by Kaimetsu
Isn't that a global thing, though? You couldn't replace an emote on your own server without changing it for every server?
I doubt it is possible to overwrite the global stuff. I have never tested it, though. And as long as you are not going to replace emoticons, why care?
Reply With Quote
  #23  
Old 07-09-2003, 03:01 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by Loriel
I doubt it is possible to overwrite the global stuff. I have never tested it, though. And as long as you are not going to replace emoticons, why care?
Because:

1) There aren't so many characters left to use.
2) Other servers might want to use the same keys as you, and the resulting conflicts would be undesirable.
__________________
Reply With Quote
  #24  
Old 07-09-2003, 10:53 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Moon Godess said she did not want to replace any emoticon, but only add new ones.
And I doubt there would be bad conflicts. You can just add a PW-unique suffix to the file name.
Reply With Quote
  #25  
Old 07-09-2003, 11:02 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by Loriel
I doubt there would be bad conflicts. You can just add a PW-unique suffix to the file name.
How would that change anything? Let's pretend that both N-Pulse and Era want to use the '?' key, so they both make appropriately-named files. How will special PW-specific filenames resolve this conflict?
__________________
Reply With Quote
  #26  
Old 07-10-2003, 07:58 AM
Projectshifter Projectshifter is offline
The David
Projectshifter's Avatar
Join Date: Apr 2002
Location: USA
Posts: 912
Projectshifter is an unknown quantity at this point
Send a message via ICQ to Projectshifter Send a message via AIM to Projectshifter Send a message via MSN to Projectshifter Send a message via Yahoo to Projectshifter
Hmm... if it's /levels/emoticons/ then I do not think that it really matters globally. I am not sure, I'm just going on what theoretically I see should happen, is that if you change it, everytime you get on say NPulse, it'll download NPulse's '?' emoticon, and use it, and everytime you get on Era, it'll use Era's
'?' emoticon. Or perhaps it would be like images and it would download whichever one you were on first and then it wouldn't work for the others x-x
---Shifter
__________________
Who has time for life these days?
Reply With Quote
  #27  
Old 07-10-2003, 01:36 PM
protagonist protagonist is offline
Banned
protagonist's Avatar
Join Date: May 2003
Location: CAW
Posts: 5,586
protagonist is on a distinguished road
Send a message via AIM to protagonist Send a message via MSN to protagonist
Quote:
Originally posted by Projectshifter
Hmm... if it's /levels/emoticons/ then I do not think that it really matters globally. I am not sure, I'm just going on what theoretically I see should happen, is that if you change it, everytime you get on say NPulse, it'll download NPulse's '?' emoticon, and use it, and everytime you get on Era, it'll use Era's
'?' emoticon. Or perhaps it would be like images and it would download whichever one you were on first and then it wouldn't work for the others x-x
---Shifter

I don't think you can overwrite global graphics. Even if it did, it would save the emoticon to webgifs and not levels/emoticons, you would have to get each client to replace their emoticons.
Reply With Quote
  #28  
Old 07-10-2003, 06:00 PM
Darlene159 Darlene159 is offline
Administrator
Darlene159's Avatar
Join Date: Aug 2001
Location: Florida
Posts: 12,470
Darlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud of
Well, shoot
I want new emoticons darn it
oh well, I'm too scared to try it now, lol
thanks for the info.....
__________________
FORUM RULES
GRAAL BIBLE (Lots of useful info)
INFO ABOUT REPUTATIONS.
INFO ABOUT INFRACTIONS.
HOW TO APPLY FOR THE NON-GRAAL RELATED FORUM (<<READ THOROUGHLY!)

SUPPORT: http://support.toonslab.com

NOTE: YOU ARE RESPONSIBLE FOR YOUR OWN POSTS.
READ>THINK>POST
Reply With Quote
  #29  
Old 07-11-2003, 12:55 AM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Quote:
Originally posted by Kaimetsu
How would that change anything? Let's pretend that both N-Pulse and Era want to use the '?' key, so they both make appropriately-named files. How will special PW-specific filenames resolve this conflict?
Oi, good point. I thought you talked about emoticon files overwriting each other and not getting updated to the current PW's one due to timestamps and such.
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 01:35 AM.


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