Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Is there a way to............ (https://forums.graalonline.com/forums/showthread.php?t=46013)

Darlene159 07-08-2003 03:36 AM

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?

protagonist 07-08-2003 03:56 AM

Yes, there is a way. UN has a system right now. It basically uses keydown.

Darlene159 07-08-2003 04:18 AM

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 ;)

Kaimetsu 07-08-2003 04:45 AM

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.

Darlene159 07-08-2003 04:51 AM

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

Andy0687 07-08-2003 06:51 AM

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

Kaimetsu 07-08-2003 06:55 AM

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.

Loriel 07-08-2003 03:09 PM

I am pretty sure there is some way to use your PW's emoticons through the default system. I just don't remember how.

protagonist 07-08-2003 03:44 PM

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.

Kaimetsu 07-08-2003 03:53 PM

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.

adam 07-08-2003 04:10 PM

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.

protagonist 07-08-2003 04:19 PM

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.

Darlene159 07-08-2003 05:19 PM

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

Loriel 07-08-2003 07:15 PM

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.

osrs 07-08-2003 08:21 PM

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.

Darlene159 07-08-2003 09:40 PM

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?

mhermher 07-08-2003 11:53 PM

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

Python523 07-09-2003 12:31 AM

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

osrs 07-09-2003 02:31 AM

Quote:

Originally posted by Darlene159
What would you change the setani to for an emoticon, or would it be setgani?
Read Jagen's post. :)

mhermher 07-09-2003 03:40 AM

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 :p

Kaimetsu 07-09-2003 05:45 AM

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?

Loriel 07-09-2003 01:36 PM

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?

Kaimetsu 07-09-2003 03:01 PM

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.

Loriel 07-09-2003 10:53 PM

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.

Kaimetsu 07-09-2003 11:02 PM

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?

Projectshifter 07-10-2003 07:58 AM

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

protagonist 07-10-2003 01:36 PM

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.

Darlene159 07-10-2003 06:00 PM

Well, shoot
I want new emoticons darn it
oh well, I'm too scared to try it now, lol
thanks for the info.....

Loriel 07-11-2003 12:55 AM

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.


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

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