Skrypty & Kody Teleport

Status
Zamknięty.

WertiX

Active User
Zarejestrowany
Dołączył
Grudzień 22, 2009
Posty
110
Liczba reakcji
0
no mam problem z tym tp chc? ?eby zabiera?o te? soula (100)
PHP:
local lev = 300
function onSay(cid, words, param)
local player = getPlayerByName(param)
local playerpos = getPlayerPosition(cid)
local player2pos = getPlayerPosition(player)
local 30000 mana = getPlayerMaxMana(cid)
	if isPremium(cid) == TRUE then
		if (getPlayerLevel(cid) >= lev or getPlayerAccess(cid) >= 0) then
			if (getPlayerMana(cid) == 30000) then
				if (isPlayer(player) == 1) then
					if((getTilePzInfo(player2pos) == FALSE and getCreatureCondition(cid,CONDITION_INFIGHT) == FALSE)) then
							doTeleportThing(cid,getPlayerPosition(player))
						
							doPlayerSendTextMessage(cid, 19,"Teleported \""..param.."\" Succesfully. You lost "..30000 mana.." mana.")
							doPlayerAddMana(cid,-30000)
						else
					doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You can not be in combat, the player can not be in pz.")
					end
				else
				doPlayerSendCancel(cid,"This player is offline, or doesnt exist.")
				end
			else
			doPlayerSendCancel(cid,"You Need 30k mana and 100 Soul to Teleported.")
			end
		else
		doPlayerSendCancel(cid,"you need lvl 300 teleported to  '.. lev ..' lvl")
		end
	end
return true
end

nie wiem nie chce mi dzia?a? tera
 
Odp: Teleport

PHP:
local lev = 300 
function onSay(cid, words, param) 
local player = getPlayerByName(param) 
local playerpos = getPlayerPosition(cid) 
local player2pos = getPlayerPosition(player) 
local 30000 mana = getPlayerMaxMana(cid) 
    if isPremium(cid) == TRUE then 
        if (getPlayerLevel(cid) >= lev or getPlayerAccess(cid) >= 0) then 
            if (getPlayerMana(cid) == 30000) and (getPlayerSoul(cid) >= 100)then 
                if (isPlayer(player) == 1) then 
                    if((getTilePzInfo(player2pos) == FALSE and getCreatureCondition(cid,CONDITION_INFIGHT) == FALSE)) then 
                            doTeleportThing(cid,getPlayerPosition(player)) 
                            doPlayerSendTextMessage(cid, 19,"Teleported \""..param.."\" Succesfully. You lost 30000 mana and 100 souls.") 
                            doPlayerAddMana(cid,-30000) 
			    doPlayerAddSoul(cid, -100)
                        else 
                    doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You can not be in combat, the player can not be in pz.") 
                    end 
                else 
                doPlayerSendCancel(cid,"This player is offline, or doesnt exist.") 
                end 
            else 
            doPlayerSendCancel(cid,"You Need 30k mana and 100 Soul to Teleported.") 
            end 
        else 
        doPlayerSendCancel(cid,"you need lvl 300 teleported to  '.. lev ..' lvl") 
        end 
    end 
return true 
end
 
Ostatnia edycja:
Odp: Teleport

nie dzia?a mi na jednym kliencie pisze to nic si? nie dzieje a na drugim wy?wietla si? np !tp Son Goku a w tym na ???to to pacca nie mam pomy?ka a chc? ?eby na bia?o pisa?o ?e nie masz pacca a nie na ???to ten czar,ale dalej nie dzia?a'
 
Odp: Teleport

PHP:
local lev = 300 
function onSay(cid, words, param) 
local player = getPlayerByName(param) 
local playerpos = getPlayerPosition(cid) 
local player2pos = getPlayerPosition(player) 
    if isPremium(cid) == TRUE then 
        if (getPlayerLevel(cid) >= lev or getPlayerAccess(cid) >= 0) then 
            if (getPlayerMana(cid) >= 30000) and (getPlayerSoul(cid) >= 100)then 
                if (isPlayer(player) == 1) then 
                    if((getTilePzInfo(player2pos) == FALSE and getCreatureCondition(cid,CONDITION_INFIGHT) == FALSE)) then 
                            doTeleportThing(cid,getPlayerPosition(player)) 
                            doPlayerSendTextMessage(cid, 19,"Teleported \""..param.."\" Succesfully. You lost 30000 mana and 100 souls.") 
                            doPlayerAddMana(cid,-30000) 
			    doPlayerAddSoul(cid, -100)
                        else 
                    doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You can not be in combat, the player can not be in pz.") 
                    end 
                else 
                doPlayerSendCancel(cid,"This player is offline, or doesnt exist.") 
                end 
            else 
            doPlayerSendCancel(cid,"You Need 30k mana and 100 Soul to Teleported.") 
            end 
        else 
        doPlayerSendCancel(cid,"you need lvl 300 teleported to  '.. lev ..' lvl") 
        end 
    end 
return true 
end

Teraz powinno ?miga?.
 
Odp: Teleport

Kurcz? ci?gle to samo,?e masakryczne to jest nie mam na to si?y o co tu chodzi tibia8.0 jak co?. to jest pod talkaction czy pod spells lepiej?. ?adnych b??d?w w konsoli NIC>.<
 
Ostatnia edycja:
Odp: Teleport

Talkactions... a masz jakie? b??dy w silniku? mo?e nie masz jakiej? funkcji...

Jestes pewny ze twoja postac ma 300 lvl, premium, 30 000 many i 100 souls
 
Odp: Teleport

nic b??d?w. Wymagania spe?nia,pacc,30k many i 100souls. O co tu chodzi Lol tobie smiga na dbko 3.11?? we? sprawd? u sb.linijka w action>talkactions
<talkaction words="!tp" script="tp.lua" /> Link Do tematu teleportu

b?d? ci naprawd? wdzi?czny jak pomo?esz mi to naprawi? i jeszcze jedna sprawa ka?dy skrypt z talkactions z "!" nie dzia?a
 
Ostatnia edycja:
Odp: Teleport

A ja ci dam skrypt na Instant Transmission do talkactions ale ciut inny :)

data/talkactions/scripts/nazwa.lua

Kod:
function onSay(cid, words, param)
local player2 = getPlayerByName(param)
local manacost = 30000
local soul = 100
player2pos = getPlayerPosition(player2)
level = 300

if getPlayerLevel(cid) >= level then

if isPremium(cid) then

if getPlayerMana(cid) >= manacost then

if getPlayerSoul(cid) >= soul then

if isPlayer(player2) == 1 then

if getTilePzInfo(player2pos) ~= 1 then
doPlayerAddMana(cid, -manacost)
doPlayerAddSoul(cid, -soul)
doTeleportThing(cid, player2pos)
doPlayerSay(cid,"Text jaki wypowie po przeteleportowaniu",16)

else
doPlayerSendCancel(cid,"You can not be in combat, the player can not be in pz")
end

else
doPlayerSendCancel(cid,"This player is offline, or doesnt exist")
end

else
doPlayerSendCancel(cid,"You need 30000 mana")
end

else 
doPlayerSendCancel(cid,"You need soul (100)") 
end  

else
doPlayerSendCancel(cid,"You need Premium Account")
end

else
doPlayerSendCancel(cid,"You need lvl (125)")
end

end


& w data/talkactions/talkactions.xml
Kod:
<talkaction words="instant transmission" script="nazwa.lua" />
^Nie mo?e by?

//Nie testowane ale powinno ?miga? [mi dzia?a ale bez akcji soul [tutaj doda?em]]
 
Odp: Teleport

dzi?ki zobacz? za tydzie? jak b?d? mia? pr?d,ale tera u kolegi jestem i nie mam dost?pu do neta
 
Odp: Teleport

No a jak w tym skrypcie i w ktorym miejscu wpisac Nick gracza?
 
Odp: Teleport

Jak si? robi ?eby nie by?o mo?na si? tepa? np do hostera GMA tutora itp tylko gracze, te? ?eby nie by?o mo?na si? tepa? jak si? ma FIGHT albo pk i ?eby nie tepa? si? z chronionego pzta NP temple... ,tylko tam gdzie pvp mo?na

EFEKT zrobiony mam(tylko, ?e jak do typa si? tepne to jest taki efekt...)A chcia? bym ?eby to u mnie si? pojawia? ten efekt nie u gracza 2. ale z tym pztem to troch? inne

@UP piszesz to co napisa?e? w linijce talkactions/talckactions/ <talkaction words="z" script="x".lua" />

z- to co potrzebne do napisania mo?esz napisa? byle co ale po tym musi by? taki znaczek ---> " (jak chcesz si? tepn?? piszesz np: instant transmission"Son Goku)
x- to ten skrypt co wczytuje
 
Ostatnia edycja:
Odp: Teleport

Kod:
if (getPlayerGroupId(cid) > 3) then
	doPlayerSendCancel(cid, "You cannot teleport to this player.")
	doSendMagicEffect(getCreaturePosition(cid), 2)
	return true
end

Spr?buj doda? co? takiego.
 
Odp: Teleport

#topic Cz?owieku pisz zawsze jaki silnik bo nasz kolega luzak123 nie wiedzia? jaki masz i jak si? domy?lam s?dzi? ?e masz tfsa 0.3.6++ a nie te dbko :)
 
Odp: Teleport

Kod:
if (getPlayerGroupId(cid) > 3) then
	doPlayerSendCancel(cid, "You cannot teleport to this player.")
	doSendMagicEffect(getCreaturePosition(cid), 2)
	return true
end

Spr?buj doda? co? takiego.

a to jest na to jak si? ma pz z potworami lub PK, to nie mo?na si? teleportowa?, czy co?

---Aktualizacja---

#topic Cz?owieku pisz zawsze jaki silnik bo nasz kolega luzak123 nie wiedzia? jaki masz i jak si? domy?lam s?dzi? ?e masz tfsa 0.3.6++ a nie te dbko :)

zamiast nabija? tu posty, by? pom?g?, a nie si? wym?drza?. Dzi?kuje tyle z mojej strony, a co ty sobie wyobra?asz, ?e si? znam tak jak ty czy inni ?
 
Status
Zamknięty.
Back
Do góry