Page 1 of 1

Confused Tree on TMWServ

Posted: 27 Sep 2009, 19:11
by Crush
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

Re: Confused Tree on TMWServ

Posted: 29 Sep 2009, 20:38
by Turmfalke
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.

Re: Confused Tree on TMWServ

Posted: 29 Sep 2009, 20:57
by Jaxad0127
It's an NPC.

Re: Confused Tree on TMWServ

Posted: 30 Sep 2009, 05:57
by melkior
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.

Re: Confused Tree on TMWServ

Posted: 30 Sep 2009, 06:14
by Dark Lord
jaxad0127 wrote:It's an NPC.
No its not an NPC its a bot made by Melkior and it sits in Hurnscald

Re: Confused Tree on TMWServ

Posted: 30 Sep 2009, 07:14
by melkior
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.

Re: Confused Tree on TMWServ

Posted: 30 Sep 2009, 09:26
by Dark Lord
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: