Confused Tree on TMWServ

Content and general development discussion, including maps, quests, and server code from the development team.
Post Reply
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: Thu Aug 25, 2005 5:08 pm
Location: Germany

Confused Tree on TMWServ

Post by Crush » Sun Sep 27, 2009 8:11 pm

Today I wrote an NPC script inspired by the Confused Tree bot in Hurnscald - the emotional palm which is supposed to stand in front of Tulimshar:

Code: Select all

emo_count = 0
emo_state = EMOTE_SURPRISE

function emote_talk(npc, ch)
  if emo_state     == EMOTE_SURPRISE then
    state = "confused"
  elseif emo_state == EMOTE_SAD then
    state = "sad"
  elseif emo_state == EMOTE_HAPPY then
    state = "happy"
  end
  do_message(npc, ch, string.format("The emotional palm seems %s.", state))
  v = do_choice(npc, ch,
    "Stupid palm, you are ugly and everyone hates you!",
    "You are such a nice palm, let me give you a hug.",
    "Are you a cocos nucifera or a syagrus romanzoffiana?")
    
  if (v     == 1) then
    emo_state = EMOTE_SAD
  elseif (v == 2) then
    emo_state = EMOTE_HAPPY
  elseif (v == 3) then
    emo_state = EMOTE_SURPRISE
  end
  do_npc_close(npc, ch)
end

function emote_update(npc)
  emo_count = emo_count + 1
  if emo_count > 50 then
    emo_count = 0
    tmw.effect_create(emo_state, npc)
  end
end
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
Turmfalke
Novice
Novice
Posts: 350
Joined: Sun Aug 10, 2008 7:28 pm
Location: Maligree's Wonderful Garden

Re: Confused Tree on TMWServ

Post by Turmfalke » Tue Sep 29, 2009 9:38 pm

is Confused Tree a real bot? or is it just a another mule with a funny name? like witty tree, magic tree or how they were all called.
I stand beside the holy man
The monarchs fear my wrath
None may move the way I can
Ever the crooked path
a knight
User avatar
Jaxad0127
TMW Adviser
TMW Adviser
Posts: 4209
Joined: Thu Nov 01, 2007 6:35 pm
Location: Internet

Re: Confused Tree on TMWServ

Post by Jaxad0127 » Tue Sep 29, 2009 9:57 pm

It's an NPC.
Image
melkior
Novice
Novice
Posts: 320
Joined: Sun Dec 28, 2008 4:57 pm

Re: Confused Tree on TMWServ

Post by melkior » Wed Sep 30, 2009 6:57 am

Turmfalke wrote:is Confused Tree a real bot? or is it just a another mule with a funny name? like witty tree, magic tree or how they were all called.
If you're referring to the Confused Tree char residing in Hurnscald from time to time, it's a bot.
User avatar
Dark Lord
Novice
Novice
Posts: 312
Joined: Wed Apr 29, 2009 11:05 am
Location: Earth

Re: Confused Tree on TMWServ

Post by Dark Lord » Wed Sep 30, 2009 7:14 am

jaxad0127 wrote:It's an NPC.
No its not an NPC its a bot made by Melkior and it sits in Hurnscald
Regards
DarkLord

Dark Lord, DarkLord* In Game and lvl 50 Image

And a beginner pixel-artist :D

Code: Select all

Code? What code?
melkior
Novice
Novice
Posts: 320
Joined: Sun Dec 28, 2008 4:57 pm

Re: Confused Tree on TMWServ

Post by melkior » Wed Sep 30, 2009 8:14 am

Dark Lord wrote:No its not an NPC its a bot made by Melkior and it sits in Hurnscald
Owned, modified and maintained, but not made. Not until Tree 2.0 is done, anyway.
User avatar
Dark Lord
Novice
Novice
Posts: 312
Joined: Wed Apr 29, 2009 11:05 am
Location: Earth

Re: Confused Tree on TMWServ

Post by Dark Lord » Wed Sep 30, 2009 10:26 am

melkior wrote:
Dark Lord wrote:No its not an NPC its a bot made by Melkior and it sits in Hurnscald
Owned, modified and maintained, but not made. Not until Tree 2.0 is done, anyway.
Oh LOL Tree 2.0 :lol:
Regards
DarkLord

Dark Lord, DarkLord* In Game and lvl 50 Image

And a beginner pixel-artist :D

Code: Select all

Code? What code?
Post Reply