Forum

> > CS2D > Scripts > My Map (:
Forums overviewCS2D overview Scripts overviewLog in to reply

English My Map (:

6 replies
To the start Previous 1 Next To the start

moved My Map (:

tuliomasson
User Off Offline

Quote
Today I had an idea, try to make a map of tibia .... when everything going right until it appeared to put the monsters respawn ... My question is, how to add monsters in tibia mod? (there are 11 monsters)
I'll pass the coordinates:

Picture: "gfx/weiwen/pokemon/130"
position of tile: 173/10
Name: Ice
-------------------------------------------------- ---
image: "gfx/weiwen/pokemon/e2"
Tile position: 168/115
Name: Dragon
-------------------------------------------------- ---
image: "gfx/weiwen/pokemon/1412"
Tile position: 190/134
name: Berserker
-------------------------------------------------- ---
image: "gfx / weiwen / pokemon / icetitan"
position of tile: 24/177
Name: Freeze
-------------------------------------------------- ---
image: "gfx / weiwen / pokemon / bigcene"
Tile position: 56/193
Name: Lava
-------------------------------------------------- ---
image: "gfx / weiwen / pokemon / imp"
Tile position: 126/183
Name: Dark
-------------------------------------------------- ---
image: "gfx / weiwen / pokemon / nyancat"
Tile position: 184/183
name: NyanCat
-------------------------------------------------- ---
image: "gfx / weiwen / pokemon / Solrock"
Tile position: 167/177
name: Sunflare
-------------------------------------------------- ---
image: "gfx / weiwen / pokemon / tronite"
Tile position: 191/178
Name: Tron
-------------------------------------------------- ---
image: "gfx / weiwen / pokemon / gronite"
Tile position: 192/177
name: Gron
-------------------------------------------------- ---
image: "gfx / weiwen / pokemon / Zapdos"
Tile position: 176/194
Name: Radius
-------------------------------------------------- ---

I really need your help to finish this SCRIPT! please someone help me?
If you need any more information, comment. Thank you all! And especially to DC at CS2D! (:
edited 1×, last 21.10.12 09:09:38 pm

Admin/mod comment

I guess this goes in script section. /Starkkz

old Re: My Map (:

Shawni
User Off Offline

Quote
I suggest to dont edit tibia

I can only help you to edit max monster

Goto cs2dtibia/Config.lua
1
2
3
-- maximum number of monsters on the map at one time. 
if set to 0, monsters.lua is not loaded at all.
	MAXMONSTERS = 12,

Edit the number 12 to 20or more for more monster

old Re: My Map (:

Occasus
User Off Offline

Quote
This thread looks weird, how come the title said My Map (: while this thread is in the lua script section?

old Re: My Map (:

rokeliuxas
GAME BANNED Off Offline

Quote
hello i know i shouldnt ask it there but i dont want spam and make new thread soo i have one problem whats wrong in this >
after i paste it my tibia edit is crashing

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
addhook("serveraction","EXPserveraction")
function EXPserveraction(id,action)
     if player(id, 'health') <= 0 then return end
     if action == 1 then
          if not PLAYERS[id].Tutorial.inventory then
               message(id, "This is your inventory. You can equip or use items by clicking on them. You can press F3 to access your equipment.", "255128000")
               PLAYERS[id].Tutorial.inventory = true
          end
          inventory(id)
     elseif action == 2 then
          if not PLAYERS[id].Tutorial.inventory then
               message(id, "This is your equipment. You can unequip or use items by clicking on them.", "255128000")
               PLAYERS[id].Tutorial.inventory = true
          end
          equipment(id)
     elseif action == 3 then
          if PLAYERS[id].tmp.exhaust.use then
               return
          end
          PLAYERS[id].tmp.exhaust.use = true
          timer(CONFIG.EXHAUST.USE, "rem.useExhaust", tostring(id))
          local itemid = PLAYERS[id].Equipment[9]
          if itemid then
               local amount, items = itemcount(id, itemid)
               message(id, "Using " .. (amount == 0 and ("the last " .. ITEMS[itemid].name) or ("one of " .. fullname(itemid, amount+1))) .. "...@C", "000255000")
               ITEMS[itemid].func[1](id, 9, itemid, true)
               if amount > 0 then
                    table.remove(PLAYERS[id].Inventory, items[1])
                    PLAYERS[id].Equipment[9] = itemid
               end
          else
               message(id, "You can hold a rune and use F4 to cast it easily.", "255255255")
          end
     end
end

old Re: My Map (:

Blunt
User Off Offline

Quote
@user rokeliuxas:
emove by your first [/code] the slash, and your codelines will work-

also,
1
your code

old Re: My Map (:

Shawni
User Off Offline

Quote
@user rokeliuxas: What is the error ? is there any error in the console ?
edited 1×, last 22.10.12 01:44:24 pm

old Re: My Map (:

rokeliuxas
GAME BANNED Off Offline

Quote
@Daky-Sky if u asking me soo there is no error in console just crashing after like 5min of gameplay
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview