Forum

> > CS2D > Scripts > i need some scrip for rpg tibia pls .
Forums overviewCS2D overview Scripts overviewLog in to reply

English i need some scrip for rpg tibia pls .

4 replies
To the start Previous 1 Next To the start

old i need some scrip for rpg tibia pls .

pkpk34535
User Off Offline

Quote
Hi all i'm a tibia sv admin i'm not pro for the scrip
Well . i want make some item
1.When i use the item i will be teleport to a place (like teleport rune) but i dont want teleport to spawn . like tibia normal
it will be teleport to ice island

2.when i use a item it will spawn a monstre (no random).

old Re: i need some scrip for rpg tibia pls .

Yates
Reviewer Off Offline

Quote
Your first question is easy, just find the teleport item and give it another name, id and give it a fixed setpos location.

Your second on the other hand may be easy, but it can and will be abused. I do not recommend it.. Buuuttt, seeing as you will ignore me check out the admin.lua, there you will find the command !m, just copy the way it spawns a monster and add it into the item function.

old Re: i need some scrip for rpg tibia pls .

pkpk34535
User Off Offline

Quote
@user Yates:

for the teleport if
1
2
3
4
5
6
7
8
9
[99] = {	
                name = 'Lose Island map'
		desc = " Follow this map"
		r = 255, g = 255, = 255
		action = "cast",
		item = 98
		func = {function(id,itemslot,itemid,equip)
			parse("setpos "..id.." "1056" "10016)
		end,equip},
is work ?
and for spawn monstre
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[98] = {
		name = "???",  
		desc = "It will be danger"
		r = 255, g = 255, b = 255, 
		action = "cast", 
		func =	if gettile(player(id, 'tilex'), player(id, 'tiley')).SAFE then
					msg2(id,'You cant spawn the ..... at here.')
					return 1
				end
				local name = words:sub(4)
				if name then
					for i, v in pairs(CONFIG.MONSTERS) do
						if v.name:lower() == name:lower() then
							local m = deepcopy(v)
							m.x, m.y = player(id, 'x'), player(id, 'y')
							Monster:new(m)
							return 1
						end
					end
				end		 
	},
where i add the monstre name ?
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview