What's new
  • logo_cipsoft
    Latest servers:
    New servers will open on: 19th Feb 2025:
    Noctalia (Open PvP) Ignitera (Open PvP) us_logo Xybra (Open PvP)

Nieda sie opuscic domku

tabaluga13

Advanced User
Joined
Feb 28, 2009
Messages
230
Reaction score
16
Witam, na moim ots inna postacia kupi?em domek, teraz chce zamienic na inny, i opuscic stary. Co musze zrobic bo komendy !leavehouse i !sellhouse
niedzialaja :( POMOCY
 

blazion

Advanced User
Joined
Feb 5, 2009
Messages
242
Reaction score
13
Odp: Nieda sie opuscic domku

napisz jaki silnik i wogole jaka tibia moze niema tych komend w silniku ?
 

BoBBo Frucio

Active User
Joined
Aug 23, 2008
Messages
81
Reaction score
6
Age
32
Odp: Nieda sie opuscic domku

wchodzisz w .../data/talkactions/scripts tworzysz plik leavehouse.lua i wklejasz to
Code:
function onSay(cid, words, param)
	if getTileHouseInfo(getPlayerPosition(cid)) ~= FALSE then
		if getHouseOwner(getTileHouseInfo(getPlayerPosition(cid))) == getPlayerGUID(cid) then
			setHouseOwner(getTileHouseInfo(getPlayerPosition(cid)), 0)
			doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have successfully left your house.")
		else
			doPlayerSendCancel(cid, "You are not the owner of this house.")
			doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
		end
	else
		doPlayerSendCancel(cid, "You are not inside a house.")
		doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
	end
end

pozniej bierzesz WSTECZ i otwiersz za pomoca notatnika plik talkactions.xml i wklejasz tam to
Code:
<talkaction words="!leavehouse" script="leavehouse.lua"/>
Pozdro BoBBo Frucio :))
 

Tutti Frutti

Advanced User
Joined
Jun 29, 2009
Messages
381
Reaction score
10
Age
29
Odp: Nieda sie opuscic domku

sorki ?e si? wtr?c? daj mu jeszcze sellhouse :D
 
Joined
Jul 20, 2009
Messages
42
Reaction score
2
Age
37
Odp: Nieda sie opuscic domku

;D

Prosty Sposob Wejc Na GM i /owner NICK POSTACI NA JAK? CHCESZ DOMEK PRZEPISAC)


By? W Domku ;D
 

Tutti Frutti

Advanced User
Joined
Jun 29, 2009
Messages
381
Reaction score
10
Age
29
Odp: Nieda sie opuscic domku

omg CZ?OWIEKU we? si? zastan?w zanim powiesz co? bez sensu:curse:
Kole? i co b?dzie ca?y czas usuwa? kogo? z domku bo kto? chce go sprzedac we? bo nie wyrobie :curse:
 

DreamerDream

Advanced User
Joined
Aug 28, 2008
Messages
280
Reaction score
18
Odp: Nieda sie opuscic domku

On nieprosi o skrypt -.-
Tabaluga a wpisywa?e? komendy w domku czy poza domkiem?
 

alaska91

Advanced User
Joined
Dec 23, 2008
Messages
177
Reaction score
5
Odp: Nieda sie opuscic domku

Ja tez mam ten problem wiec dal by ktos jeszcze jakis skrypt bo ten co tu jest nie dziala a sellhouse dziala tylko lkeave nie chce dzialac ;/
 

BoBBo Frucio

Active User
Joined
Aug 23, 2008
Messages
81
Reaction score
6
Age
32
Odp: Nieda sie opuscic domku

Otwierasz plik commands.xml notatnikiem i to co jest na czerwono wklejasz w swoim pliku commands.xml oczywiscie jesli tego nie ma

Code:
-- Players
[COLOR="Red"]<command cmd="!sellhouse" 	access="0" />			-- Sell your house to a player
<command cmd="!buyhouse" 	access="0" />    		-- Buy a house
<command cmd="!leavehouse" 	access="0" />    		-- Leave a house[/COLOR]

<command cmd="!serverinfo" 	access="0" />    		-- Show server information
<command cmd="!exp" 		access="0" />			-- Show how many exp you need until the next level
<command cmd="!mana" 		access="0" />			-- Show how mana you need to spent until the next magic level
<command cmd="!online" 		access="0" />			-- Shows the amount of online players
<command cmd="!report" 		access="0" />			-- report a bug to the Hoster
<command cmd="!uptime" 		access="0" />			-- Shows the server's uptime
<command cmd="!frags" 		access="0" />			-- Shows how many frags the player has
</commands>
 
Top