tae
Active Member
hey i was browsing a few forums when i came across how cipsoft's npcs are i will post one here:
i looked and noticed how simple these npcs are and wonder wouldn't it be better to have all npcs converted like this? this would mean no more placing them in the map editor and could be done easier and more efficient
Code:
# GIMUD - Graphical Interface Multi User Dungeon
# captain1.npc: Kapitän Blaubaer in Thais
Name = "Captain Bluebear"
Sex = male
Race = 1
Outfit = (129,19-69-107-50)
Home = [32310,32210,6]
Radius = 2
GoStrength = 5
Behaviour = {
ADDRESS,"hello$",male,! -> "Welcome on board, Sir %N."
ADDRESS,"hi$",male,! -> *
ADDRESS,"hello$",female,! -> "Welcome on board, Madam %N."
ADDRESS,"hi$",female,! -> *
ADDRESS,! -> Idle
BUSY,"hello$",! -> "One moment please %N. You're next in line.", Queue
BUSY,"hi$",! -> *
BUSY,! -> NOP
VANISH,! -> "Good bye. Recommend us, if you were satisfied with our service."
"bye" -> "Good bye. Recommend us, if you were satisfied with our service.", Idle
"farewell" -> *
"name" -> "My name is Captain Bluebear from the Royal Tibia Line."
"job" -> "I am the captain of this sailing-ship."
"captain" -> *
"ship" -> "The Royal Tibia Line connects all seaside towns of Tibia."
"line" -> *
"company" -> *
"route" -> *
"tibia" -> *
"good" -> "We can transport everything you want."
"passenger" -> "We would like to welcome you on board."
"trip" -> "Where do you want to go? To Carlin, Ab'Dendriel, Venore, Port Hope or Edron?"
"passage" -> *
"town" -> *
"destination" -> *
"sail" -> *
"go" -> *
"ice" -> "I'm sorry, but we don't serve the routes to the Ice Islands."
"senja" -> *
"folda" -> *
"vega" -> *
"darashia" -> "I'm not sailing there. This route is afflicted by a ghostship! However I've heard that Captain Fearless from Venore sails there."
"darama" -> *
"ghost" -> "Many people who sailed to Darashia never returned because they were attacked by a ghostship! I'll never sail there!"
"thais" -> "This is Thais. Where do you want to go?"
"carlin" -> Price=110, "Do you seek a passage to Carlin for %P gold?", Topic=2
"ab'dendriel" -> Price=130, "Do you seek a passage to Ab'Dendriel for %P gold?", Topic=3
"edron" -> Price=160, "Do you seek a passage to Edron for %P gold?", Topic=4
"venore" -> Price=170, "Do you seek a passage to Venore for %P gold?", Topic=5
"port","hope" -> Price=160, "Do you seek a passage to Port Hope for %P gold?", Topic=7
"carlin",QuestValue(250)>2 -> Price=100, "Do you seek a passage to Carlin for %P gold?", Topic=2
"ab'dendriel",QuestValue(250)>2 -> Price=120, "Do you seek a passage to Ab'Dendriel for %P gold?", Topic=3
"edron",QuestValue(250)>2 -> Price=150, "Do you seek a passage to Edron for %P gold?", Topic=4
"venore",QuestValue(250)>2 -> Price=160, "Do you seek a passage to Venore for %P gold?", Topic=5
"port","hope",QuestValue(250)>2 -> Price=150, "Do you seek a passage to Port Hope for %P gold?", Topic=7
Topic>0,Topic<8,"yes",PZBlock,! -> "First get rid of those blood stains! You are not going to ruin my vehicle!"
#Topic=2,"yes",PZBlock,! -> "First get rid of those blood stains! You are not going to ruin my vehicle!"
#Topic=3,"yes",PZBlock,! -> *
#Topic=4,"yes",PZBlock,! -> *
#Topic=5,"yes",PZBlock,! -> *
# für postquest
Topic=2,"yes",Premium, QuestValue(227)=1,CountMoney>=Price -> "Set the sails!", DeleteMoney, Idle, EffectOpp(11), Teleport(32387,31821,6), EffectOpp(11),SetQuestValue(227,2)
Topic=2,"yes",Premium,CountMoney>=Price -> "Set the sails!", DeleteMoney, Idle, EffectOpp(11), Teleport(32387,31821,6), EffectOpp(11)
Topic=3,"yes",Premium,CountMoney>=Price -> "Set the sails!", DeleteMoney, Idle, EffectOpp(11), Teleport(32733,31668,6), EffectOpp(11)
Topic=4,"yes",Premium,CountMoney>=Price -> "Set the sails!", DeleteMoney, Idle, EffectOpp(11), Teleport(33175,31764,6), EffectOpp(11)
Topic=5,"yes",Premium,CountMoney>=Price -> "Set the sails!", DeleteMoney, Idle, EffectOpp(11), Teleport(32954,32023,6), EffectOpp(11)
Topic=7,"yes",Premium,CountMoney>=Price -> "Set the sails!", DeleteMoney, Idle, EffectOpp(11), Teleport(32530,32784,6), EffectOpp(11)
Topic>0,"yes",CountMoney>=Price -> "I'm sorry, but you need a premium account in order to travel onboard our ships."
Topic>0,"yes" -> "You don't have enough money."
Topic>0 -> "We would like to serve you some time."
}
i looked and noticed how simple these npcs are and wonder wouldn't it be better to have all npcs converted like this? this would mean no more placing them in the map editor and could be done easier and more efficient