Thread: emoticons event
View Single Post
  #1  
Old 06-02-2009, 01:05 AM
Frankie Frankie is offline
xChugxLifex
Frankie's Avatar
Join Date: Feb 2008
Location: New York
Posts: 1,610
Frankie is a jewel in the roughFrankie is a jewel in the rough
Send a message via AIM to Frankie Send a message via MSN to Frankie
emoticons event

having some trouble here. I haven't scripted in quite a long time and I'm trying to make an event but I'm not sure where to start.

basically I'm trying to make the emoticons event, where an NPC does an emoticon and the players have to replicate the exact emoticon in a certain amount of time or else they get kicked.

basically what I did, I put everything in a class. every time the player in the level used an emoticon, it set a client string with "emoticonchar"

the NPC ran a 3 second loop using schedule event and every 3 seconds it would choose a random number between 65 and 90? (not sure if it was 90) since emoticonchar is basically just a value 65 - 90.

when it picked the number it would add to a string. basically after 3 seconds it tries to match up the last emoticon value with your client string value. if it was different, it would kick you (I never really got to code this without it being buggy..)

I don't have the code right now, but what I did seemed messy and it was quite buggy. the 3 second loop wasn't even working for some reason. is there a better way to do what I'm trying to accomplish?

I'll try to re-do the code and show it here in a bit.
__________________
*Sum41Freeeeek
*Frankie
Reply With Quote