• 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!
  • If you're using Gesior 2012 or MyAAC, please review this thread for information about a serious security vulnerability and a fix.

Nostalrius 7.7

PuszekLDZ

Well-Known Member
Joined
Jan 2, 2020
Messages
236
Solutions
1
Reaction score
55
Location
Lodz
By edit, I mean adding an elf outfit, for example. If the source needs to be edited, which file should I look for?
i dont get it...
elf outfit like - custom
or as monster look like?

if monster - you edit that in database - looktype
elf - 62
elf arcanist - 63
elf scout - 64
 

tejdi

Porn Producer 👀
Premium User
Joined
Oct 26, 2010
Messages
432
Solutions
2
Reaction score
111
Location
Poland
i dont get it...
elf outfit like - custom
or as monster look like?

if monster - you edit that in database - looktype
elf - 62
elf arcanist - 63
elf scout - 64
Monster but with a possibility to edit colours.
 

Ahoi

Active Member
Joined
Sep 23, 2016
Messages
106
Reaction score
31
Exactly, but I still haven't found a way to do that.
All of the bank code is on a single file: gen-bank.ndb
hey bro you found how to make it work for all except the bank?
Post automatically merged:

The problem itself it's the dialog, you can't check for currency when you talk to npc like that:
hhUTngc.png

The only workaround I can imagine is to use something different on bank npc than %1:
Code:
Topic=91,%1,0<%1 -> Amount=%1*100, Price=%1, "So I should change %A of your gold coins to %P platinum coins for you?", Topic=96
But I'm stucked now.
this one i meant
 

PuszekLDZ

Well-Known Member
Joined
Jan 2, 2020
Messages
236
Solutions
1
Reaction score
55
Location
Lodz
hey bro you found how to make it work for all except the bank?
Post automatically merged:


this one i meant
You have to rise amount on cpp file, and compile again. I donr remember now, but look in whole project for "500"
 

Ahoi

Active Member
Joined
Sep 23, 2016
Messages
106
Reaction score
31
You have to rise amount on cpp file, and compile again. I donr remember now, but look in whole project for "500"

Yes I know where to change it, but how to change it work only for cash in banks and not for every other things?
 

Ochman

Advanced OT User
Joined
Feb 27, 2016
Messages
345
Solutions
5
Reaction score
244
There is none on the vanilla engine, but should be fairly easy to do by editing script from other project.
 

pistvakt

New Member
Joined
Oct 6, 2021
Messages
6
Reaction score
4
Great distro, trying to get the bank system to work, even though it wasn't implented until 7.9. Depositing and withdrawing works but the transfer function does not. There are several functions which needs to be implented in behaviourdatabase.cpp/.h for it to work.

GetString, Guid, PlayerExists, FullDigit and Transfer

Found the FullDigit from Retricaria but they didn't have the rest either. Trying to figure out how to make it work, but as a novice it's hard. I've made quite the mess but give me a couple of years and I've got it working.

Example code from gen-bank.ndb, which won't work since these functions don't exist:

Code:
FullDigit,%1,0<%1,Topic=205 -> Amount=%1, "So you would like to transfer %A gold coins to whom?", Topic=206
FullDigit,"transfer",%1,0<%1 -> *
GetString,Topic=206,Guid=PlayerExists -> "You cannot transfer gold to yourself."
GetString,Topic=206,PlayerExists=0 -> "A player with this name does not exist."
GetString,Topic=206,PlayerExists>=1 -> "So you would like me to transfer %A gold coins to %S, is this correct?", Topic=207
Topic=207 -> "Maybe some other time."

"yes",Topic=207,Balance>=Amount -> "You have transferred %A gold coins to %S.", Transfer(Amount)
 
Last edited:

chucky91

Well-Known Member
Joined
Apr 8, 2010
Messages
147
Solutions
8
Reaction score
74
COMBAT_PARAM_DISPEL
Anyone out there having a problem with Exana pox? When walking 100% it doesn't remove the poison, and when stopped it has a small chance of failing.
Post automatically merged:

By edit, I mean adding an elf outfit, for example. If the source needs to be edited, which file should I look for?
Outfit color elf is id 144 and dwarf is 160
 
Last edited:

pink_panther

Premium User
Premium User
Joined
Sep 10, 2016
Messages
942
Solutions
13
Reaction score
418
Location
Kazordoon
COMBAT_PARAM_DISPEL
Anyone out there having a problem with Exana pox? When walking 100% it doesn't remove the poison, and when stopped it has a small chance of failing.
Post automatically merged:


Outfit color elf is id 144 and dwarf is 160

Add
Lua:
creature:removeCondition(CONDITION_POISON)

To
Lua:
function onCastSpell(creature, variant)
for antidote spell and rune
 
Top