Forum

> > CS2D > Scripts > My Map (:
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch My Map (:

6 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

verschoben My Map (:

tuliomasson
User Off Offline

Zitieren
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! (:
1× editiert, zuletzt 21.10.12 21:09:38

Admin/Mod Kommentar

I guess this goes in script section. /Starkkz

alt Re: My Map (:

Shawni
User Off Offline

Zitieren
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

alt Re: My Map (:

Occasus
User Off Offline

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

alt Re: My Map (:

rokeliuxas
GAME BANNED Off Offline

Zitieren
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

alt Re: My Map (:

Shawni
User Off Offline

Zitieren
@user rokeliuxas: What is the error ? is there any error in the console ?
1× editiert, zuletzt 22.10.12 13:44:24

alt Re: My Map (:

rokeliuxas
GAME BANNED Off Offline

Zitieren
@Daky-Sky if u asking me soo there is no error in console just crashing after like 5min of gameplay
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht