• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Three questions

Fresh

Quack!
Joined
Oct 21, 2009
Messages
1,855
Solutions
18
Reaction score
671
Hello, I've 3 questions for semi-good scripters:

1) How to do an NPC (tfs 0.3.5pl1) who not-response i mean:
Player: Hi
NPC: <not response>, just stand.

2) If you click on item and you got money (10-20 gp) you got random food (tfs 0.3.5pl1)

3) How to make npc (tfs 0.3.5pl1) who are buying stackable items (without trade module, just sayin "sell X meat","sell X diamonds")

Help :blink:
 
1) remove this
Code:
<parameter key="message_greet" value="Hello |PLAYERNAME|! Just say {advanced health rune} or {advanced mana rune} or {strike spells}?"/>

3) you will have to do a .lua file :ninja:

IF I HELPED YOU PLEASE REP++ ME and write ur name i will give it back!
 
Anyone can make it for me :
2) If you click on item and you got money (10-20 gp) you got random food (tfs 0.3.5pl1)

3) How to make npc (tfs 0.3.5pl1) who are buying stackable items (without trade module, just sayin "sell X meat","sell X diamonds")

@Joseph15 rep++
 
lol... you didn't explain well

Code:
function onUse (cid, item, fromPosition, itemEx, toPosition)
  if doPlayerRemoveMoney(cid, math,random(10,20)) then
    doPlayerAddItem(cid, FoodID, 1)
  end
  return true
end
 
1) remove this
Code:
<parameter key="message_greet" value="Hello |PLAYERNAME|! Just say {advanced health rune} or {advanced mana rune} or {strike spells}?"/>

237601_main.jpg


that won't work
 
@Cykotitan
So what I must do with NPC for - not responding to player ?
You can also make a ".lua" ?
How to make npc (tfs 0.3.5pl1) who are buying stackable items (without trade module, just sayin "sell X meat","sell X diamonds")
 
@Fresh So what I must do with NPC for - not responding to player

edit:
PHP:
<interaction range="0" idletime="0"> -- this part dont make any difference.
    <interact keywords="hi" focus="0"> -- here is the magic!
      <keywords>hello</keywords> -- this part dont make any difference.
      <response text="Cyko is a badoll =/."> -- you can edit this part but it dont make any difference.
        <action name="idle" value="0"/> -- this part dont make any difference.
      </response>
    </interact>
  </interaction>
	<parameters>
  </parameters>
	</npc>

put this part in your data/npc/npc'name.xml
 
Last edited:
Back
Top