Problem with pets

smoochy boys on tour

fercho

Dedicated Member
Dedicated Member
Apr 19, 2008
64
0
52
someone can help me please, i do a script that give you a pet, the problem is that the npc give you 10000 pets, i need that the npc when give you one pet, if you whant another the npc say you, already have a pet or something like that
 
Last edited:

FireWire

Dedicated Member
Dedicated Member
Mar 8, 2009
26
0
27
maybe show us the script and we can say you what you must change *lol

btw why you dont use the txt check system.

example
#if
checknamelist example.txt
#say
you have already a pet
#elseact
addnamelist example.txt
give pet
 

howie

LOMCN Veteran
Veteran
Loyal Member
Jun 7, 2003
310
2
112
UK
This is from my DSM, it does mot check for existing pets.
 

Attachments

  • petrenter.txt
    5.2 KB · Views: 22

fercho

Dedicated Member
Dedicated Member
Apr 19, 2008
64
0
52
thanks all

FireWire i probe that you say, not work :S, thanks howie my petrenter is like yours more or less, the problem is that if i click 5 times is go out 25 mobs :P i need something that when you have 5 pets, say to you already have 5 pets, i cant give you no more.

Thanks for help
 

FireWire

Dedicated Member
Dedicated Member
Mar 8, 2009
26
0
27
have a check in your files and search for the word addnamelist delnamelist than you see how it works

you must create a txt file and use 3 commands addnamelist delnamelist and checknamelist trust me it work! and with that nearly all is possible
 

fercho

Dedicated Member
Dedicated Member
Apr 19, 2008
64
0
52
ok thanks i search all my files the 3 commands, and i havent any npc with that commands... for that i cant use that

thanks for all
 

FireWire

Dedicated Member
Dedicated Member
Mar 8, 2009
26
0
27
you havent ehm ohh wondering (till now i had it in all files i had) i will look also than i try it to explain again :)
 

fercho

Dedicated Member
Dedicated Member
Apr 19, 2008
64
0
52
thanks m8 and sorry for my english is not good :P
 

FireWire

Dedicated Member
Dedicated Member
Mar 8, 2009
26
0
27
So i had checked the 1.955 files and it also have the 3 commands!

so first of all create a txt file in questdiary "..\QuestDiary\havepet.txt"

Than create a script in Market_Def ( Name unimportend!)

#if
checknamelist ..\QuestDiary\havepet.txt
#say
You already have a pet !\
<Exit/@exit>
#elseact
addnamelist ..\QuestDiary\havepet.txt
callmon(!YOUR-PET-NAME-HERE!
break


finish must work ! btw restart the server before testing or he didnt see it as new script !
 

fercho

Dedicated Member
Dedicated Member
Apr 19, 2008
64
0
52
thanks m8 but i use 1.8 files, that command not work in that files, thanks
 

FireWire

Dedicated Member
Dedicated Member
Mar 8, 2009
26
0
27
not true it also works in 1.8 files with that files i had started also till i found out that much spells as example are buggy. thats why i go to a higher version. now you have the possibility to use the 1.955 version unlimited and you still use the 1.8 files ?

so for me it looks like you are a bit lazy and wanna have all on a silverplate ( can that be??)
 

fercho

Dedicated Member
Dedicated Member
Apr 19, 2008
64
0
52
no its not true, i have my server since one year more or less, and i dont ask anything, if you think that its ok, no problem, tread closed.

thanks all
 

FireWire

Dedicated Member
Dedicated Member
Mar 8, 2009
26
0
27
no i ask me only why you use futhermore serverfiles that are buggy ? the 1.955 files have more possibilities better looks and so on spells nearly all working.

so there is no logical reason to use 1.8 files only if its to much work to translate them to english spain whatever
 

fercho

Dedicated Member
Dedicated Member
Apr 19, 2008
64
0
52
i up this thread if someone have the same problem than me. i resolved that like this:

#if

checkex level > 39
checkex level < 45
CHECKCHARNAMELIST mascota
systemmsg "already have a pet!"
#elseact
ADDNAMELIST mascota
callmon !LittleRascal
here it is
close

you need createan txt file calling mascota.txt its all

thanks alot

edit another time because dont work sorry im working on it thanks and sorry
 
Last edited:

FireWire

Dedicated Member
Dedicated Member
Mar 8, 2009
26
0
27
i know why its not work

you have checkcharnamelist that is a error command

it must be " Checknamelist"
 

fercho

Dedicated Member
Dedicated Member
Apr 19, 2008
64
0
52
no, npc give you a pet ,the problem is when give you a pet, and pet die the npc will not give again, why=??? very simple i think so hehehe, the command DELNAMELIST has to be in any place because the name of the char is in the list. i still working thanks.

thanks firewire :P :)